"Bounce" Fixed

Size
2,087 Kb
Views
10,120

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 Previews

"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;
};
"Bounce" Fixed - Script Codes
"Bounce" Fixed - Script Codes
Home Page Home
Developer Julien Dargelos
Username juliendargelos
Uploaded November 29, 2022
Rating 4.5
Size 2,087 Kb
Views 10,120
Do you need developer help for "Bounce" Fixed?

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!

Julien Dargelos (juliendargelos) 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!