corentinfardeau / horizontal-scroll Goto Github PK
View Code? Open in Web Editor NEWHorizontal scroll with inertia
Home Page: https://corentinfardeau.github.io/horizontal-scroll/
License: MIT License
Horizontal scroll with inertia
Home Page: https://corentinfardeau.github.io/horizontal-scroll/
License: MIT License
I am trying to add next/prev buttons, create a dots navigation but I am not able to animate the .horizontal-scroll
div.
I tried many ways:
TweenMax.to('.horizontal-scroll', 1, { x: -500 });
$('.horizontal-scroll').css({ transform: 'translate3d(-1000px, 0 ,0)' });
Nothing worked. How can I jump to a specific block or even animate the animate .horizontal-scroll
div manually?
Hi, first of all the demo for this looks great.
I've been trying to implement a test case based on the demo, but am having some trouble. The plugin appears to init correctly, but the scrolling div doesn't transform. I can scroll horizontally across the trackpad, but it doesn't hijack the vertical scroll as expected โ any idea why this could be happening? Unfortunately, the console isn't throwing any errors.
I'm happy to post code as required. My test case is using hugo.
Thanks for the good work!
I actually would like to use horizontal-scroll with full height (100vh) and % width blocks (1/3 width), so the screen is exactly filled with 3 blocks. Only when scrolling, the other blocks would be visible.
Right now it's only possible to use horizontal-scroll with px width blocks, which doesn't provide the look i'm looking for.
Is there a way to use horizontal-scroll with percentage blocks?
Thanks!
I'm using the class="block" with width: 100vw; and height: 100vh; as to create various sections in a horizontal layout, however, a simple menu, with links to the various sections doesn't work properly. Particularly when it comes to the first section, but also on the others, it only scrolls halfway into it, not to its beginning. Other times don't work at all.
My set up goes like this:
JSFIDDLE
I want to use this great package with Next.js Any idea how can I do so..?
Wondering is this library still maintained.
I was trying to add a drag control using GSAP's Draggable plugin but I cannot make this library and the plugin work together.
How much effort would it require to add drag as a native feature?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.