Animation study
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 - 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") ; } }
Developer | Patrick Walburg |
Username | tripack |
Uploaded | November 22, 2022 |
Rating | 3 |
Size | 2,507 Kb |
Views | 16,192 |
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 |
Study in Knockout.js | 1,826 Kb |
Cofee and sugar | 2,094 Kb |
Hamburger css | 1,976 Kb |
A Pen by Patrick Walburg | 2,255 Kb |
Responvise design with sticky menu | 3,238 Kb |
To do list | 2,908 Kb |
Banner-demo | 4,285 Kb |
Rollovers with transitions. | 2,079 Kb |
Voorbeeldcode | 2,841 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 |
JQuery FullScreen Overlay | _codemics | 2,252 Kb |
Apple website | Jds317 | 1,835 Kb |
Parallax scrolling scene | Iharosi | 2,485 Kb |
Obligatory CSS3 UI Nav | Romandiaz | 9,017 Kb |
Gradient-ui-button-mark-fx | Tabspace | 1,881 Kb |
Animated SVG stroke-dasharray | Netsi1964 | 3,179 Kb |
Cloudy Spiral CSS animation | Hakimel | 6,587 Kb |
Menubar compass mixin | Michaelparenteau | 4,925 Kb |
LDE old privacy page | Jasonangle | 2,339 Kb |
CSS Parent Selector | Tomhodgins | 2,143 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!