Skrollr basic implementation, alternative
How do I make an skrollr basic implementation, alternative?
Full explanation at Full explanation at http://www.bram.us/2014/01/01/skrollr-css-animations-linked-to-scroll-position/. What is a skrollr basic implementation, alternative? How do you make a skrollr basic implementation, alternative? This script and codes were developed by Bramus on 23 July 2022, Saturday.
Skrollr basic implementation, alternative - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Skrollr basic implementation, alternative</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- For a full explanation of this code, please refer to the blogpost at http://www.bram.us/2014/01/01/skrollr-css-animations-linked-to-scroll-position/ -->
<div id="skrollr-wrapper"> <div id="box1">box1</div> <div id="box2">box2</div>
</div>
<script src="https://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="https://prinzhorn.github.io/skrollr/dist/skrollr.min.js"></script> <script src="js/index.js"></script>
</body>
</html>
Skrollr basic implementation, alternative - Script Codes CSS Codes
/* For a full explanation of this code, please refer to the blogpost at http://www.bram.us/2014/01/01/skrollr-css-animations-linked-to-scroll-position/ */
body { padding: 0; margin: 0; background: #fff fixed url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAQMAAABJtOi3AAAABlBMVEX4+Pj09PQf/c7fAAAAGklEQVR4Xq3MIQEAAADDIPqX/kvMIMEWEm8O7b0/wewc/NcAAAAASUVORK5CYII=) repeat;
}
#skrollr-wrapper { /* make sure the boxes stay in place while you scroll by wrapping them in this fixed div: */ width:100%; height:100%; position:fixed; overflow: hidden;
}
#skrollr-wrapper div { position: absolute; overflow: hidden; text-align: center;
}
#box1 { background: blue; margin: auto; top: 0; left: 0; right: 0; bottom: 0;
}
#box2 { background: red; height: 100px; width: 100%; margin-top: 50px;
}
Skrollr basic implementation, alternative - Script Codes JS Codes
// For a full explanation of this code, please refer to the blogpost at http://www.bram.us/2014/01/01/skrollr-css-animations-linked-to-scroll-position/
// setSkrollr function extracted from https://www.pingdom.com/2013/
var setSkrollr = function($el, data) { for (var i = 0, l = data.length; i < l; i++) { var d = data[i], px = d[0]; css = d[1]; $el.attr('data-' + px, css); }
}
jQuery(function($) { setSkrollr($('#box1'), [[0, 'width:100%'], [1500, 'width:0%']]); setSkrollr($('#box2'), [[0, 'transform:translateX(-100%)'], [750, 'transform:translateX(100%)'], [1500, 'transform:translateX(-100%)']]); skrollr.init({ smoothScrolling: false });
});
Developer | Bramus |
Username | bramus |
Uploaded | July 23, 2022 |
Rating | 3 |
Size | 2,611 Kb |
Views | 40,480 |
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 |
CSS Revolving Door | 2,312 Kb |
Simple Flexbox Grid System | 7,705 Kb |
Scroll Animations | 3,466 Kb |
CSS Glitch | 2,699 Kb |
Simplest CSS Slideshow | 1,994 Kb |
Pythagoras | 3,197 Kb |
Photosphere Demo | 1,922 Kb |
SVG SMIL Logo Animation | 3,788 Kb |
Scrolling Horizontal Isotope | 2,017 Kb |
Canvas multiline fillText | 1,875 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 |
RSW | JordanC | 3,726 Kb |
Hovers with popups | Zacharyolson | 2,380 Kb |
DFF Website | Hawcubite | 10,123 Kb |
Sassy Buttons | Elyseholladay | 2,299 Kb |
A Pen by lizz | Lizz | 10,068 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
React Recipe Box | Krokodill | 5,347 Kb |
FreeCodeCamp - Simon Game | Ivhed | 8,481 Kb |
Draggable directive | YahyaKacem | 2,277 Kb |
Responsive Table-less Shopping Cart | Alex_rodrigues | 6,637 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!