A Pen by paul
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 - 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"})
}
Developer | Paul |
Username | paulq |
Uploaded | October 27, 2022 |
Rating | 3 |
Size | 2,390 Kb |
Views | 10,120 |
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!
Name | Size |
Flexbox-Slider-Test | 1,666 Kb |
Parallax on scrollevent | 2,386 Kb |
TabContainer pure css3 | 2,870 Kb |
Sitemap getter | 1,823 Kb |
Keyframes and Webkits with LESS | 2,630 Kb |
Three js | 2,353 Kb |
Input tabcontainer | 4,390 Kb |
Callback function | 2,939 Kb |
Setter getter closure functions | 1,662 Kb |
Canvas tutorial | 2,043 Kb |
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!
Name | Username | Size |
Owl Carousel - jumpTo | OwlFonk | 2,553 Kb |
A Pen by Alex Edwards | Exards | 8,218 Kb |
Whyutils | LeYvan | 3,752 Kb |
Siema - add pagination to prototype | Pawelgrzybek | 2,575 Kb |
CodeCamp Tribute Page | JonathanDeJesus | 6,860 Kb |
CSS3 Selectables with information rollover | Jasonmayes | 9,565 Kb |
Mobile first social buttons with no iframe | Alistairtweedie | 3,158 Kb |
Chuck Norris Background | Manz | 1,967 Kb |
Twitch API | Coderpilot | 3,412 Kb |
HTML5 Breakout | Jaysalvat | 4,873 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!