hamzaerbay / react-content-slider Goto Github PK
View Code? Open in Web Editor NEWReact content slider experiment
Home Page: https://hamzaerbay.github.io/react-content-slider/
License: MIT License
React content slider experiment
Home Page: https://hamzaerbay.github.io/react-content-slider/
License: MIT License
Add router to provide a mapping from URL to the related photo state.
Thus, users can share the link of any card, or simply bookmark the URL.
The id
or slug
(this would be better) field of the photo would be used to show in the URL.
ex.
https://hamzaerbay.github.io/react-content-slider/card/copenhagen-power-plant
Instead of loading all contents on page load, preload only defined number of cards (e.g. n=3).
Add a loading placeholder for the photos haven't loaded yet. (This only happens, if users switch cards too fast or have a slow connection.)
Panning images to see hidden parts of the photo in the canvas would be nice. Zooming would be considered as well.
See this example: https://codepen.io/ccrch/pen/yyaraz
Switch between cards by scrolling mouse wheel (or trackpad) up or down
or pressing arrow keys (up and down).
Space key would be used to switch next card as well.
Slide direction can be configurable, vertical/horizontal.
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.