Click Based Rotation Demo

Developer
Size
2,086 Kb
Views
46,552

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 Previews

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();
}
Click Based Rotation Demo - Script Codes
Click Based Rotation Demo - Script Codes
Home Page Home
Developer Zach Saucier
Username Zeaklous
Uploaded August 20, 2022
Rating 4.5
Size 2,086 Kb
Views 46,552
Do you need developer help for Click Based Rotation Demo?

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!

Zach Saucier (Zeaklous) Script Codes
Create amazing video scripts 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!