"Bounce" Fixed
How do I make an "bounce" fixed?
What is a "bounce" fixed? How do you make a "bounce" fixed? This script and codes were developed by Julien Dargelos on 29 November 2022, Tuesday.
"Bounce" Fixed - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>"Bounce" Fixed</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <p id="scroll">Scroll !</p>
<div id="e">#</div> <script src="js/index.js"></script>
</body>
</html>
"Bounce" Fixed - Script Codes CSS Codes
body { background:url('http://img248.imageshack.us/img248/4061/capturedcran20130330230.png'); margin:0; height:2000px;
}
#scroll { background:rgba(255,255,255,0.9); width:100%; top:0; margin:0; padding:70px 0; border-bottom:1px solid #fff; opacity:1; position:fixed; font-family:'Georgia'; font-style:italic; font-size:60px; text-align:center; text-shadow:0 1px 0 #fff; -webkit-transition:0.5s; -moz-transition:0.5s; -ms-transition:0.5s; -o-transition:0.5s; transition:0.5s;
}
#scroll.hidden { top:-210px; opacity:0;
}
#e { background:#000; width:74px; height:97px; top:0; left:-50px; margin:155px 0 0 50%; padding:1px 0 0 24px; border:1px solid #fff; border-radius:1000px; overflow:hidden; position:fixed; font-family:'Helvetica'; font-size:90px; color:#fff; -webkit-transition:0.5s; -moz-transition:0.5s; -ms-transition:0.5s; -o-transition:0.5s; transition:0.5s;
}
"Bounce" Fixed - Script Codes JS Codes
document.getElementById('e').style.position='absolute';
preScroll=0;
document.onscroll=function() { if(document.body.scrollTop>30) { document.getElementById('scroll').className='hidden'; } else { document.getElementById('scroll').className=''; } document.getElementById('e').style.top=document.body.scrollTop+'px'; if(preScroll<document.body.scrollTop) document.getElementById('e').style.margin='255px 0 0 50%'; else document.getElementById('e').style.margin='55px 0 0 50%'; setTimeout(function() { document.getElementById('e').style.margin='155px 0 0 50%'; },300); preScroll=document.body.scrollTop;
};
Developer | Julien Dargelos |
Username | juliendargelos |
Uploaded | November 29, 2022 |
Rating | 4.5 |
Size | 2,087 Kb |
Views | 10,120 |
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 |
Js-ScrollBar | 5,045 Kb |
Psychedelic Animation | 2,665 Kb |
SmartPass | 3,841 Kb |
Pure CSS Torch Light | 2,727 Kb |
A Pen by Julien Dargelos | 2,139 Kb |
Vusic | 4,178 Kb |
Calculator | 2,553 Kb |
Tags Input | 4,202 Kb |
InfoGrid | 4,925 Kb |
Skateboard tricks | 3,181 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 slide | Nakome | 3,190 Kb |
Loader | MikitaLisavets | 3,321 Kb |
A Pen by Brendan Skousen | Bskousen | 2,954 Kb |
Twitch.tv API | Ryzokuken | 2,618 Kb |
Cofee and sugar | Tripack | 2,094 Kb |
Import shader in three.js | Khangeldy | 2,636 Kb |
A Pen by Bryan Rojas | Bryanrojas | 1,873 Kb |
Sequence.js - Sliding Horizontal Parallax | Maheshc | 4,537 Kb |
Ball physics | Blackkbot | 3,874 Kb |
Retina canvas w. resize | Erikterwan | 1,882 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!