Scroll effect with text with help from Skrollr

Developer
Size
2,935 Kb
Views
40,480

How do I make an scroll effect with text with help from skrollr?

This effect I'm very happy with. Not so much to do in the JS file and the same for the CSS file.To gain this effect I only had to set white-space: nowrap; overflow: hidden; on the p tags and then just adjust the width of the p tag. Pretty simple.. What is a scroll effect with text with help from skrollr? How do you make a scroll effect with text with help from skrollr? This script and codes were developed by Sophia on 28 July 2022, Thursday.

Scroll effect with text with help from Skrollr Previews

Scroll effect with text with help from Skrollr - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Scroll effect with text with help from Skrollr</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @import url(http://fonts.googleapis.com/css?family=Roboto:100);
body::-webkit-scrollbar { display:none; }
body { background:#34aadc; font-family:'HelveticaNeue-Light', Roboto; color:#fff;
}
.content { position:fixed; left:50%; margin-left:-250px; top:50px; width:500px;
}
.intro { width:100%; text-align:center; font-size:40px; margin:0px 0 20px;
}
.text { font-size:22px; padding-left:2%; height:30px;	white-space: nowrap;	overflow: hidden;
}
#bitcoin { width:30px;
}
.credit { margin-top:14px; font-size:14px; font-style:italic;
}
.arrow { text-align:center; margin-top:80px; font-size:46px; backface-visiblilty:hidden;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="content"> <div class="intro" data-0="transform:translateY(65px);" data-500="transform:translateY(0px);">Scroll to see the effect</div> <div class="arrow" data-0="opacity:1; display:block; transform:translateY(-10px);" data-400="opacity:0; display:none; transform:translateY(-45px);">▾</div> <p class="text" data-500="width:0%; opacity:0;" data-1500="width:98%; opacity:1;"> This text i manipulated by the skrollr js script.</p> <p class="text" data-1000="width:0%; opacity:0;" data-2500="width:98%; opacity:1;"> Nearly everything is changed in the HTML code</p> <p class="text" data-2000="width:0%; opacity:0;" data-3500="width:98%; opacity:1;"> but with the data-attribute and CSS. So please try it!</p> <p class="text" data-3000="width:0%; opacity:0;" data-4500="width:98%; opacity:1;"> Images <img id="bitcoin" src="https://cdn4.iconfinder.com/data/icons/payment-method/160/payment_method_bitcoin-256.png" alt="" /> are also supported :D</p> <p class="text credit" data-4000="width:0%; opacity:0;" data-5500="width:98%; opacity:1;"> Made by Joacim Nilsson with help from Alexander Prinzhorn</p>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/skrollr/0.6.11/skrollr.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Scroll effect with text with help from Skrollr - Script Codes CSS Codes

@import url(http://fonts.googleapis.com/css?family=Roboto:100);
body::-webkit-scrollbar { display:none; }
body { background:#34aadc; font-family:'HelveticaNeue-Light', Roboto; color:#fff;
}
.content { position:fixed; left:50%; margin-left:-250px; top:50px; width:500px;
}
.intro { width:100%; text-align:center; font-size:40px; margin:0px 0 20px;
}
.text { font-size:22px; padding-left:2%; height:30px;	white-space: nowrap;	overflow: hidden;
}
#bitcoin { width:30px;
}
.credit { margin-top:14px; font-size:14px; font-style:italic;
}
.arrow { text-align:center; margin-top:80px; font-size:46px; backface-visiblilty:hidden;
}

Scroll effect with text with help from Skrollr - Script Codes JS Codes

skrollr.init();
Scroll effect with text with help from Skrollr - Script Codes
Scroll effect with text with help from Skrollr - Script Codes
Home Page Home
Developer Sophia
Username luxonglassing
Uploaded July 28, 2022
Rating 3
Size 2,935 Kb
Views 40,480
Do you need developer help for Scroll effect with text with help from Skrollr?

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!

Sophia (luxonglassing) 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!