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 |
Reverse clip path with blend modes | 2,725 Kb |
Building Images | 3,909 Kb |
Converting CSS Animations to Transitions | 1,995 Kb |
SVG clip path with blend mode | 8,886 Kb |
Prism music visualizer | 6,900 Kb |
CSS Callback Functions Using Iteration | 2,720 Kb |
Circle Snake | 1,965 Kb |
Single element color loader | 2,603 Kb |
Business card | 4,454 Kb |
Swirling dots | 6,415 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 |
Vanilla JS - A toggleClass function | Woodwork | 2,532 Kb |
Simple search using AngularJS | Haykou | 1,802 Kb |
Masonry | Uriuriuriu | 5,005 Kb |
Ball physics | Blackkbot | 3,874 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
Experiment | Toddmoy | 2,849 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
Tumblr API | Juanv911 | 2,436 Kb |
A Pen by Jess | Jessamyne | 5,100 Kb |
Pure CSS Animated Photo Stack | Depthdev | 2,486 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!