> Continue learning about animations in Babylon.js.

Source: https://doc.babylonjs.com/features/introductionToFeatures/chap3/caranimation

# Getting Started - Car Animation

## Animate the Car in the Village

In a similar way to how we animated the wheels, we now animate the car so that it travels in a straight line over 5 seconds, stops for 2 seconds, and then repeats.
```javascript
const animCar = new BABYLON.Animation("carAnimation", "position.x", 30, BABYLON.Animation.ANIMATIONTYPE_FLOAT, BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE);

const carKeys = []; 

carKeys.push({
    frame: 0,
    value: -4
});

carKeys.push({
    frame: 150,
    value: 4
});

carKeys.push({
    frame: 210,
    value: 4
});

animCar.setKeys(carKeys);

car.animations = [];
car.animations.push(animCar);

scene.beginAnimation(car, 0, 210, true);
```

- [Playground: Animated the Car Forward](https://playground.babylonjs.com/#KDPAQ9#5561) - Simple example of how to animate the car's position forward.

After adjusting the position of the car and its route so that it travels past the village houses, we have:

- [Playground: Add the Car to the Village](https://playground.babylonjs.com/#KJ6XKH#1) - Add the animating car back into the village.

In this case, we built the car ourselves. Let's now look at a model character that we can import along with its built-in animation.
