A Pen by paul

Developer
Size
2,390 Kb
Views
10,120

How do I make an a pen by paul?

What is a a pen by paul? How do you make a a pen by paul? This script and codes were developed by Paul on 27 October 2022, Thursday.

A Pen by paul Previews

A Pen by paul - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by paul</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="car1"></div>
<div class="car2"></div>
<div class="car3"></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

A Pen by paul - Script Codes CSS Codes

body { background: grey; height: 5000px; width: 100%;
}
.car1 { top: 200px; left: 50px; height: 280px; width: 140px; position: fixed; background: url(http://www.volkswagen-polo.com/docroot/assets/img/car_grey.png) no-repeat; transform: rotate(-90deg); -moz-transform: rotate(-90deg); -webkit-transform: rotate(-90deg);
}
.car2 { top: 60px; left: 0px; height: 280px; width: 140px; position: fixed; background: url(http://www.volkswagen-polo.com/docroot/assets/img/car_blue.png) no-repeat; -moz-transform: rotate(-90deg); -webkit-transform: rotate(-90deg);
}
.car3 { top: 200px; left: 650px; height: 280px; width: 140px; position: fixed; background: url(http://www.volkswagen-polo.com/docroot/assets/img/car_grey.png) no-repeat; -moz-transform: rotate(-90deg); -webkit-transform: rotate(-90deg);
}

A Pen by paul - Script Codes JS Codes

//https://imgur.com/gallery/WfOJn
var h= window.innerHeight; // height
var w= window.innerWidth; // width
var percent = window.scrollY / window.scrollMaxY;
console.log(h,+" "+ w);
console.log(percent);
window.addEventListener('scroll', function(){ requestAnimationFrame(animation);
});
function animation(){ $('.car2').animate({ left: 780, },{ step: function(now, fx){ $('.car2').css({ transform: 'rotate('-90+now/Math.PI+'deg)', left: 680, top: 80 }) } }, {easing: "swing"})
}
A Pen by paul - Script Codes
A Pen by paul - Script Codes
Home Page Home
Developer Paul
Username paulq
Uploaded October 27, 2022
Rating 3
Size 2,390 Kb
Views 10,120
Do you need developer help for A Pen by paul?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Paul (paulq) Script Codes
Create amazing SEO content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!