Page Animation
How do I make an page animation?
Saw Phil LaPier's excellent page animations on Dribbble. He mentioned that he created it with his excellent SASS library, Bourbon. So I had to give it a shot.. What is a page animation? How do you make a page animation? This script and codes were developed by Michael Lee on 20 January 2023, Friday.
Page Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Page Animation</title> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Source+Sans+Pro'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <p class="Credits">Inspired by <a href="https://twitter.com/phillapier">Phil LaPier</a>'s Dribbble, a pen by <a href="http://michaellee.co">Michael Lee</a></p>
<a href="javascript:;" class="Trigger">TRIGGER</a>
<div class="Stage"> <div class="Card-top"></div> <div class="Card-right"></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>
Page Animation - Script Codes CSS Codes
body, html { color: #fff; font-family: 'Source Sans Pro', sans-serif; height: 100%; margin: 0; padding: 0; text-align: center; background-color: #5856D6; background-image: -webkit-linear-gradient(#5856D6, #1D62F0); background-image: linear-gradient(#5856D6, #1D62F0);
}
a { color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px; -webkit-transition: border 0.5s ease; -moz-transition: border 0.5s ease; transition: border 0.5s ease;
}
a:hover { border-bottom: 2px solid white;
}
.Credits { margin: 2em 0 1em;
}
.Stage { background: #414141; left: 0; margin: auto; overflow: hidden; position: absolute; right: 0; height: 568px; width: 320px;
}
.Stage.is-pushed .Card-top { opacity: 0.2; -webkit-transform: scale3d(0.7, 0.7, 0.7); -moz-transform: scale3d(0.7, 0.7, 0.7); -ms-transform: scale3d(0.7, 0.7, 0.7); -o-transform: scale3d(0.7, 0.7, 0.7); transform: scale3d(0.7, 0.7, 0.7);
}
.Stage.is-pushed .Card-right { right: 0;
}
.Card-top, .Card-right { background: #fff; display: block; position: absolute; height: 1000px; width: 320px;
}
.Card-top { -webkit-transition: all 0.85s ease; -moz-transition: all 0.85s ease; transition: all 0.85s ease;
}
.Card-right { right: -100%; -webkit-transition: all 0.85s ease; -moz-transition: all 0.85s ease; transition: all 0.85s ease;
}
.Trigger { text-decoration: none; border: 2px solid #fff; display: inline-block; letter-spacing: 2px; margin: 1em 0; overflow: hidden; padding: 10px; position: relative; z-index: 2; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; -webkit-transition: background 0.5s ease; -moz-transition: background 0.5s ease; transition: background 0.5s ease;
}
.Trigger:hover { background: rgba(255, 255, 255, 0.2);
}
Page Animation - Script Codes JS Codes
$('.Trigger').on('click', function(){ $('.Stage').toggleClass('is-pushed');
});
Developer | Michael Lee |
Username | michaellee |
Uploaded | January 20, 2023 |
Rating | 4 |
Size | 3,202 Kb |
Views | 6,072 |
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 |
Hidden Social Media Share Buttons | 3,795 Kb |
Illustrated CSS Switch | 3,154 Kb |
X Mobile Menu | 3,833 Kb |
Mountains Illustration | 2,957 Kb |
Stop Using Corner Banners | 2,765 Kb |
Responsive C3.js chart | 2,111 Kb |
SVG Hearts | 1,513 Kb |
Ringing bell | 3,287 Kb |
Rotating Button | 3,534 Kb |
Current time clock icon | 2,794 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 |
CSS3 Snow Animation | NickyCDK | 1,695 Kb |
HTML5 Breakout | Jaysalvat | 4,873 Kb |
Transition | Shayhowe | 1,632 Kb |
Border-radius animation | Yukulele | 2,480 Kb |
SCSS Unit Conversion | Jakob-e | 8,210 Kb |
IE11 Test | Boostnewmedia | 4,998 Kb |
Hc first draft | Stepfray | 5,104 Kb |
Click Based Rotation Demo | Zeaklous | 2,086 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
Font stack | Adrianjacob | 1,868 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!