Vertical image scroller with hover arrows
How do I make an vertical image scroller with hover arrows?
*for Kattis. What is a vertical image scroller with hover arrows? How do you make a vertical image scroller with hover arrows? This script and codes were developed by SNÖGRAFX on 26 August 2022, Friday.
Vertical image scroller with hover arrows - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Vertical image scroller with hover arrows</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id='img_container'> <div id='scroll_up' class='scroll_zone'></div> <div id='img_content'> <img id='scrollimage' alt='Läs mer om Lagerbutikens torsdagserbjudanden här' src='http://media-edge-cache-cdn.gudrunsjodenfiles.com/ui/media/images/boutiques/page/stockholm_upplagsvagen/graphic/calender_scrollimage.jpg' /> </div> <div id='scroll_down' class='scroll_zone'></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>
Vertical image scroller with hover arrows - Script Codes CSS Codes
#img_container { top: 50px; left: 50px; height: 481px; width: 361px; position: relative;
}
#img_content { overflow: hidden; position: absolute; padding: 0px 0 0 0; height: 100%;
}
.scroll_zone { background: purple; width: 100%; text-align: center; height: 30px; position: absolute; z-index: 100;
}
.scroll_zone:hover { background: violet; cursor: pointer;
}
#scroll_up { top: 0px; background: transparent url('http://media-edge-cache-cdn.gudrunsjodenfiles.com/ui/media/images/boutiques/page/stockholm_upplagsvagen/graphic/uparrow2.png'); width: 361px; height: 30px;
}
#scroll_up:hover { background: transparent url('http://media-edge-cache-cdn.gudrunsjodenfiles.com/ui/media/images/boutiques/page/stockholm_upplagsvagen/graphic/uparrow_hov2.png') !important;
}
#scroll_down { bottom: 0px; background: transparent url('http://media-edge-cache-cdn.gudrunsjodenfiles.com/ui/media/images/boutiques/page/stockholm_upplagsvagen/graphic/downarrow2.png'); width: 361px; height: 30px;
}
#scroll_down:hover { background: transparent url('http://media-edge-cache-cdn.gudrunsjodenfiles.com/ui/media/images/boutiques/page/stockholm_upplagsvagen/graphic/downarrow_hov2.png') !important;
}
Vertical image scroller with hover arrows - Script Codes JS Codes
$(document).ready(function(){ var scrollContent = $('#img_content').scrollTop() + $('#img_content').height(); var scrollImg = $('#scrollimage').height(); scrollImg = ((scrollImg - scrollContent) - 30); $('#scroll_up').hide(); $('#img_content').scroll(function(){ if($('#img_content').scrollTop()>30){ $('#scroll_up').fadeIn(); }else{ $('#scroll_up').fadeOut(); } if($('#img_content').scrollTop()>scrollImg){ $('#scroll_down').fadeOut(); }else{ $('#scroll_down').fadeIn(); } }); $('#scroll_up').on('mouseenter', up_scroll); $('#scroll_down').on('mouseenter', down_scroll); $('#scroll_up, #scroll_down').on('mouseleave', function() { $('#img_content').stop(); }); function up_scroll(){ $('#img_content').animate({ scrollTop: '-=5' }, 10, up_scroll); } function down_scroll(){ $('#img_content').animate({ scrollTop: '+=5' }, 10, down_scroll); }
});
Developer | SNÖGRAFX |
Username | snografx |
Uploaded | August 26, 2022 |
Rating | 3 |
Size | 2,367 Kb |
Views | 26,312 |
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 |
Norkart CityPlanner ribbon logo | 1,957 Kb |
Huzzo spinner | 1,748 Kb |
Owl Carousel, Centred Content | 2,773 Kb |
Layer spin | 2,485 Kb |
Basic parallax | 2,269 Kb |
CityPlanner Logo Loading Animation 2017 | 2,589 Kb |
CSS Navigation buttons | 2,460 Kb |
Hide on inactivity | 2,082 Kb |
CityPlanner SVG POI bubble | 2,884 Kb |
Google-style CSS options button | 2,293 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 |
Toggling Divs with jQuery | Yying6 | 1,967 Kb |
Pink expansion tunnel | Vez | 1,738 Kb |
Page Transitions in Backbone | Mikefowler | 3,691 Kb |
PNotify Demo | Adittmar | 1,731 Kb |
Pure CSS read more toggle | Idered | 2,344 Kb |
Placeholder support for contentEditable elements, without JavaScript | Flesler | 1,863 Kb |
JQuery exercise | Brian-baum | 3,780 Kb |
Tile Animation Thing | Frxnz | 4,332 Kb |
Subscription Newsletter - Before inlining | Bradstrong | 7,526 Kb |
3D flipping card | Ssaakkaa | 2,238 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!