Animation tests

Developer
Size
2,748 Kb
Views
46,552

How do I make an animation tests?

Animated elements created with javascript. What is a animation tests? How do you make a animation tests? This script and codes were developed by Michaela on 27 July 2022, Wednesday.

Animation tests Previews

Animation tests - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animation tests</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @keyframes snowflake { 100% { transform: translateY(-3000px) rotate(1200deg); }
}
html { height: 100%;
}
body { background: #A9E1EB; min-height: 100%; margin: 0;
}
div { background: white; border-radius: 100%; position: absolute; animation-name: snowflake; animation-iteration-count: infinite; animation-timing-function: linear;
}
.small { animation-duration: 20s;
}
.medium { animation-duration: 10s;
}
.large { animation-duration: 5s;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Animation tests - Script Codes CSS Codes

@keyframes snowflake { 100% { transform: translateY(-3000px) rotate(1200deg); }
}
html { height: 100%;
}
body { background: #A9E1EB; min-height: 100%; margin: 0;
}
div { background: white; border-radius: 100%; position: absolute; animation-name: snowflake; animation-iteration-count: infinite; animation-timing-function: linear;
}
.small { animation-duration: 20s;
}
.medium { animation-duration: 10s;
}
.large { animation-duration: 5s;
}

Animation tests - Script Codes JS Codes

var html = [];
for (i = 0; i < 100; i++) { var randomX = Math.random() * (100 - 1) + 1, randomY = Math.random() * (2000 - 1) + 1, randomZ = Math.random() * (100 - 1) + 1, randomR = Math.random() * (360 - 1) + 1, sizes = [ 'small', 'medium', 'large' ], dim = sizes[Math.floor(randomZ / 50)]; html.push('<div style="left: ' + randomX + '%; bottom: -' + randomY + 'px; width: ' + randomZ + 'px; height: ' + randomZ + 'px;" class="' + dim + '"></div>');
}
$("body").append( html.join('') );
Animation tests - Script Codes
Animation tests - Script Codes
Home Page Home
Developer Michaela
Username Fischaela
Uploaded July 27, 2022
Rating 3
Size 2,748 Kb
Views 46,552
Do you need developer help for Animation tests?

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!

Michaela (Fischaela) Script Codes
Create amazing captions 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!