Click Based Rotation Demo
How do I make an click based rotation demo?
A demo for the plugin I made https://github.com/ZachSaucier/ClickBasedRotationBruce Lee > all. What is a click based rotation demo? How do you make a click based rotation demo? This script and codes were developed by Zach Saucier on 20 August 2022, Saturday.
Click Based Rotation Demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Click Based Rotation Demo</title> <link href='http://fonts.googleapis.com/css?family=Merriweather' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>"Try to hit me!"</h1>
<div class="bruce-lee rot-dir" data-rot-start="kungFoo"></div>
<audio autostart="false" id="punch" src="http://zachsaucier.com/punch.mp3"></audio> <script src='http://zachsaucier.com/cbrotation.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Click Based Rotation Demo - Script Codes CSS Codes
html, body { height:100%; }
h1 { text-align:center; font-family: 'Merriweather', serif; height:10%;
}
.bruce-lee { height:90%; cursor:pointer; background:url(http://zachsaucier.com/bruce-lee.png) center center; background-size:cover;
}
#punch { position:absolute; top:0; left:0; }
@media (max-width:730px) { .bruce-lee { height:50%; }
}
Click Based Rotation Demo - Script Codes JS Codes
// Built using my Click Based Rotation plugin https://github.com/ZachSaucier/ClickBasedRotation
// For more check out zachsaucier.com
var punch = document.getElementById("punch");
function kungFoo() { punch.currentTime = 0; punch.play();
}
Developer | Zach Saucier |
Username | Zeaklous |
Uploaded | August 20, 2022 |
Rating | 4.5 |
Size | 2,086 Kb |
Views | 46,552 |
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 |
CSS Callback Functions Using Iteration | 2,720 Kb |
Simple, flat contact form | 2,719 Kb |
Swirling dots | 6,415 Kb |
Change transformation-origin mid animation | 2,138 Kb |
Responsive CSS bars | 3,137 Kb |
Reverse clip path with blend modes | 2,725 Kb |
Prism music visualizer | 6,900 Kb |
Simple p5.js music visualizer | 2,479 Kb |
Changing a CSS Animation at its Current Values | 3,781 Kb |
Converting CSS Animations to Transitions | 1,995 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 |
A Pen by Alex Bergin | Abergin | 3,347 Kb |
TweenMax transformOrigin Bubble | Nicolund | 2,209 Kb |
Glowing Pulse Form | Jackrugile | 2,542 Kb |
Basic HTML5 Structure | YuvarajTana | 1,289 Kb |
Sample Profile Screen | OurDailyBread | 5,375 Kb |
Typefaces with descriptions | Megandoty | 2,944 Kb |
AngularJS Datalist Directive | M-e-conroy | 2,366 Kb |
CSS Social Media Icon | TychoBlender | 3,871 Kb |
Sticky menu on scroll | Senff | 2,869 Kb |
Sinclair Research Computers | MattCowley | 3,068 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!