Animation study

Size
2,507 Kb
Views
16,192

How do I make an animation study?

What is a animation study? How do you make a animation study? This script and codes were developed by Patrick Walburg on 22 November 2022, Tuesday.

Animation study Previews

Animation study - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>animation study</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="world"> <div class="sky"> <div class="cloud"> <div> </div> <div> </div> <div> </div> <div> </div> </div> </div> <div class="ground"> <div class="cube"> </div> <label for="time">time:</label> <input type="range" id="time" min="2" max="24" value="newDate.getHours() " step="1" onchange="nightfall(time.value)"/> </div>
</div> <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 study - Script Codes CSS Codes

.sky{ background:lightblue; height:100%; width:100%; overflow:hidden;
}
.ground{ background:green; height:100px; width:100%;
}
/*=============== Clouds =============*/
.cloud{ position:relative; top:70px; -moz-animation-duration: 30s; -webkit-animation-duration: 30s; -moz-animation-name: slidein; -webkit-animation-name: slidein; -moz-animation-iteration-count: infinite; -webkit-animation-iteration-count: infinite; -webkit-animation-delay:2s;
}
.cloud div{ background-color:#ddd; width:140px; height:50px; border-radius:30px
}
.cloud div:nth-child(2){ -webkit-transform: rotate(90deg); -moz-transform: rotate(30deg); -ms-transform: rotate(30deg); -o-transform: rotate(30deg); transform: rotate(30deg); position:relative; bottom:60px; width:65px;
}
.cloud div:nth-child(3){ -webkit-transform: rotate(90deg); -moz-transform: rotate(30deg); -ms-transform: rotate(30deg); -o-transform: rotate(30deg); transform: rotate(30deg); position:relative; bottom:120px; left:40px; width:70px;
}
.cloud div:nth-child(4){ -webkit-transform: rotate(90deg); -moz-transform: rotate(30deg); -ms-transform: rotate(30deg); -o-transform: rotate(30deg); transform: rotate(30deg); position:relative; bottom:160px; left:70px; width:65px;
} /*=== Animotion of the clouds ===*/ @-moz-keyframes slidein { from { margin-left:100%; width:400% } to { margin-right:0%; width:0%; } } @-webkit-keyframes slidein { from { margin-left:100%; width:300% } to { margin-left:-200px; width:100%; } }
.cube {
display: block;
transition:ease 2s all;
height:40px;
width:40px;
margin:0 auto;
background:repeating-linear-gradient(-45deg,blue, purple 5px, white 5px, white 10px); border: black 1px solid;
}
.cube:hover{ -webkit-transform: rotate(+360deg); -moz-transform:rotate(+360deg) ; -ms-transform: rotate(+360deg); -o-transform:rotate(+360deg) ; transform: rotate(+360deg);
}
/* ==== Dark theme ==== */
.dark .cloud div{ background-color:#999;
}
.dark .sky { background:linear-gradient(to bottom, black 50%,blue);
}
.dark .ground { background:darkgreen;
}

Animation study - Script Codes JS Codes

$("document").ready( nightfall()); function nightfall( newtime ){ var newDate = new Date(); var newtime; if (!newtime){ newtime = newDate.getHours().toString(); } //alert(newtime + "= "+ (newtime >= "18" && newtime <= "6") ); if (newtime >= "18" && newtime <= "6" ) { $(".world").addClass("dark"); } else if ( $(".world").hasClass("dark") ){ $(".world").removeClass("dark") ; } }
Animation study - Script Codes
Animation study - Script Codes
Home Page Home
Developer Patrick Walburg
Username tripack
Uploaded November 22, 2022
Rating 3
Size 2,507 Kb
Views 16,192
Do you need developer help for Animation study?

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!

Patrick Walburg (tripack) Script Codes
Create amazing web content 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!