Animation Delay Debug

Developer
Size
7,005 Kb
Views
40,480

How do I make an animation delay debug?

Using animation delay to debug the animation. Allows you to look at a specific point in time of the animation.. What is a animation delay debug? How do you make a animation delay debug? This script and codes were developed by Mark Thomes on 04 July 2022, Monday.

Animation Delay Debug Previews

Animation Delay Debug - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animation Delay Debug</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='css/7534eb3fb62294822de9eace9.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="boxFloor"> <div class="box"></div>
</div> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script>
<script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/15979/footer-inject.js'></script> <script src="js/index.js"></script>
</body>
</html>

Animation Delay Debug - Script Codes CSS Codes

 /* keyframe @ percentage of animation 1 = end of animation 0.5 = middle of animation 0 = start of animation
*/
$TIMLINE_POS: 0.5;
$ANIMATION_DURATION: 2000ms;
$EASING: cubic-bezier(0.77, 0, 0.175, 1);
// Set to pause to debug animation
$PLAY_STATE: play; //play|paused|running|initial|inherit
$TIMLINE_DELAY_CALC: (-1 * $ANIMATION_DURATION) * $TIMLINE_POS;
// for seeing variable calc in console
@debug $TIMLINE_DELAY_CALC;
body { overflow: hidden;
}
.boxFloor { position: relative; height: 100px; width: 500px; border-bottom: 2px solid $COLOR_BRAND; @include abs-center(500px, 100px);
}
.box { box-sizing: border-box; width: 100px; height: 100px; border: 2px solid $COLOR_BRAND; transform-origin: 100% 100%; animation: turnMove $ANIMATION_DURATION $EASING infinite alternate; animation-play-state: $PLAY_STATE; animation-delay: $TIMLINE_DELAY_CALC; // Adjust 25% through animation
}
@keyframes turnMove { 0% { transform: translate(0, 0) rotate(0.0turn); transform-origin: 100% 100%; } 25% { transform: translate(0, 0) rotate(0.25turn); transform-origin: 100% 100%; animation-timing-function: step-end; } 25.01% { transform: translate(100px, 100px) rotate(0.25turn); transform-origin: 100% 0; } 50% { transform: translate(100px, 100px) rotate(0.5turn); transform-origin: 100% 0; animation-timing-function: step-end; } 50.01% { transform: translate(300px, 100px) rotate(0.5turn); transform-origin: 0 0; } 75% { transform: translate(300px, 100px) rotate(0.75turn); transform-origin: 0 0; animation-timing-function: step-end; } 75.01% { transform: translate(400px, 0) rotate(0.75turn); transform-origin: 0 100%; } 100% { transform: translate(400px, 0) rotate(1turn); transform-origin: 0 100%; }
}

Animation Delay Debug - Script Codes JS Codes

if (window.innerHeight > 622) {	document.getElementById("footer").classList.remove("hidden");
}
Animation Delay Debug - Script Codes
Animation Delay Debug - Script Codes
Home Page Home
Developer Mark Thomes
Username WithAnEs
Uploaded July 04, 2022
Rating 4
Size 7,005 Kb
Views 40,480
Do you need developer help for Animation Delay Debug?

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!

Mark Thomes (WithAnEs) 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!