Demo
How do I make an demo?
What is a demo? How do you make a demo? This script and codes were developed by Anna on 01 December 2022, Thursday.
Demo - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>demo</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="div1"></div> <script src="js/index.js"></script>
</body>
</html>
Demo - Script Codes CSS Codes
#div1 {width: 50px; height: 50px; background: red; position: absolute; left: 100px; top: 300px;} .box {border: 1px #000 solid; position: absolute;}
Demo - Script Codes JS Codes
window.onload = function(){ var oDiv = document.getElementById('div1'); var num = 0; var val = 100; var L = 100; var T = 300; setInterval(function(){ //弧度控制:left //sin控制:top num++; oDiv.style.left = L + (num*Math.PI/180)*val + 'px'; oDiv.style.top = T - Math.sin(num*Math.PI/180)*val + 'px'; var oBox = document.createElement('div'); oBox.className = 'box'; document.body.appendChild(oBox); oBox.style.left = oDiv.offsetLeft + 'px'; oBox.style.top = oDiv.offsetTop + 'px'; }, 30); }
Developer | Anna |
Username | AnnaLiu |
Uploaded | December 01, 2022 |
Rating | 3 |
Size | 1,834 Kb |
Views | 8,096 |
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 |
Slider demo | 2,019 Kb |
Canvas | 1,499 Kb |
Testing | 2,176 Kb |
Array | 1,598 Kb |
Pixi | 1,988 Kb |
Canvas rotate | 1,880 Kb |
Canvas bezia | 1,819 Kb |
A Pen by Anna | 1,828 Kb |
Canvas animate | 1,965 Kb |
Canvas transition | 1,850 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 |
Mega Menu by Joni | Asakasinsky | 3,171 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 Kb |
Emberjs Bootstrap Modal Carousel | Somethingkindawierd | 4,233 Kb |
A Pen by Rob Levin | Roblevin | 2,787 Kb |
Single element checkbox | Ivijaygupta | 1,996 Kb |
Animated rainbow wave on canvas | Icodeforlove | 2,777 Kb |
Wikipedia Viewer | Thomasvaeth | 2,549 Kb |
Sticky footer testing | 75th | 1,649 Kb |
TheCalendar.js | The-teacher | 6,330 Kb |
Search field | Jamesbarnett | 2,100 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!