Guys in this post i will share car running project source code. if you are beginner and learning html , css , javascript then this project best for you.

Lets understand basic technologies and tools we used in car running JavaScript project. It is a small mini project we used Html,css, javascript and IDE- visual studio code.

Car Running JavaScript Project Overview

Here we implemented two button i,e start and stop. when user click on the start button car will move and stop click then car will not move.

javascript project

Project Tutorial Video

Source code JavaScript


<!DOCTYPE html>
<html lang=”en”>
    <meta charset=”UTF-8″>
    <meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
    <link rel=”stylesheet” href=”style.css”>
<div id=”scene”>
    <div id=”bdiv”>
        <button onclick=”start()” id=”btn”>Start</button>
        <button onclick=”stop()” id=”btn”>Stop</button>
    <div id=”car”>
        <img src=”c2.png” style=”width:150px;” id=”im”>  
<script src=”js-file.js”></script>


margin: 0%;
padding: 0%;
background: url(road.jpg);

background: url(side.jpg);
background-repeat: no-repeat;
background-size: cover;
width: auto;
height: 450px;
width: 100px;
height: 50px ;
background-color: yellow;
font-size: 20px;
margin: 20px;

display: flex;
justify-content: center;
align-items: center;
min-height: 40vh;


var x;
var m=0;
function start()
  function anim()
            var target=document.getElementById(“im”);


function stop()

Project Resource Download

Download Images- Click Here

Hey Guys if your need any type Java project , Python and Android Apps then contact me we provide in cheap price . Contact Us:-, WhatsApp No- 7978904654

Leave a Reply

Your email address will not be published. Required fields are marked *