Comments (18)
If you open a PR and they accept it I cannot stand in the way. However, I think lory.js is fine without it and adding it simply because designers don't want to take the time to learn how to code is not a good reason.
from lory.
I'm wondering the same. The issue was closed before anyone showed a working example...
from lory.
+100 for dots
from lory.
apparently working on one
from lory.
I'm gonna make a pullrequest within the week :)
from lory.
What bugs? Please be specific.
The example I provided didn't have click events on the list items and so clicking them didn't do anything. If you want that too then it's a few lines of code more.
First example with only visual feedback: http://codepen.io/nstanard/pen/jrwymd
Second example with click events on the list items using the public API method to slide to the index: http://codepen.io/nstanard/pen/EgvVpV
Any issues you see you can mention and I'll be glad to fix but that's a working example in about 38 lines of code. I'm not arguing about anything @yoanmalie. This project is fantastic and doesn't need this feature. I have provided two examples now on how to add this functionality yourself using the provided public API and custom events.
from lory.
I would use Lory instead Slick.js. But the dot pager is the only thing is missing here to replace Slick in my workflow.
+1 For this Feature request.
from lory.
You can create your own dot pager with the provided events people.... No need to bloat the project with stuff you can add on your own.
from lory.
Absolutely, but maybe not everybody knows how, but want to use the slider anyways.
TL;DR
In my opinion a great slider is one where you can 1. have a well documented api - which is here better then nothing but far from perfect - 2. you can extend it by your own code (check), and last but not least: have quite a few standardized options to pass through - like those mouse-click events. If it's about not "bloating" the project, you, I or anybody else can write this bubble navigation, autostart function, whatever as a plugin - if that is more likeminded.
from lory.
"have quite a few standardized options to pass through"
Where does it end? Honestly... the thing I love about this slider is how minimal it is. I'm not a main contributor to this project so I don't have much weight to throw around but still.... programming isn't about having standardized options provided all the time. It's about understanding how things work and being able to adjust them the way you want. I think there is a gitter chat for this project and if anybody has any questions they can refer to that.
The story of every slider I've ever seen started with... "well what about this feature...?" and it just keeps going. I've gone through so many in my few years as a developer and this is my favorite by far. The documentation is rather clear and although I would change a few small things if I wanted to be super nitpicky it's not worth it. I have been able to program most anything I need or want with this.
The more features you add the more problems you get.
from lory.
The more features you add the more problems you get.
I'm with you - totally - as a programmer. But as a user you can say - well may this slider is not for me if I need a dot pagination and cannot program it myself. Or whatever. Or you can at least be modular and say - well if you need a dot pagination then enable it - or just get it from that place and enable this js after lory.js has loaded. For sure you have to maintain more but as stated here it is an enhancement. The thing I love about lory is its flexibility to be whatever you want it to be. But by adding new features you do not have to break those flexibility.
About the documentation. Well yes the Readme is rather clear which options you have and what you can do with the api and a bit of " well that does that thing"
But for me there shall have been a bit more, whilst I was developing the dot navigation and also an autostart option - where every designer I know is after it - I have had to take a deeper look into the code to understand what really was happening - and yes the in-code documentation is very well written, even if the codestyle with those asterisks is quite new to me ^^
from lory.
Hey,
@nstanard, i don't know how to do this. I don't code JS.
BTW, i agree with @jeebseven. Feel free to put your PR and let's see if the plugin creator would accept this.
from lory.
@yoanmalie, @jeebseven: http://kenwheeler.github.io/slick/
Have fun.
from lory.
@nstanard well jQuery dependencies. Not for me :)
from lory.
@nstanard Slick Require JQuery, Slick is oversized for most of my projects. Slick is 5.8 × heavier.
Please, be relevant.
from lory.
http://codepen.io/nstanard/pen/jrwymd
Have fun
from lory.
@yoanmalie Why are you charged with maintaining sites if you don't use JS? You should have enough knowledge to setup API/Event calls to add and remove a class.
from lory.
Wow. That escalated quickly. ᕕ( ᐛ )ᕗ
@nstanard You should have enough knowledge to ensure that your example works correctly and also, avoid bugs. Before "arguing" that i should to know JS.
i repeat: please, be relevant.
The fact that i can't code JS doesn't mean i can't use a libs or whatever.
Libs are made to save times and allow lot peoples to use them easily.
As @jeebseven said,
A great slider is one where you can:
- Have a well documented api ;
- You can extend it by your own code ;
- Have quite a few standardized options to pass through.
The third point is why i'm here. IMO dot pager are sandardized for a slider like Prev and Next buttons.
from lory.
Related Issues (20)
- initialIndex without animation HOT 2
- TypeError: P is undefined when using https://cdnjs.cloudflare.com/ajax/libs/lory.js/2.5.1/lory.min.js HOT 2
- iPhone X — Index Issue HOT 1
- Desktop: Prevent ghost images from dragging on mouseMove (desktop) HOT 3
- Access Lory Instance in EventHandler when creating multiple instances? HOT 1
- On TouchScrolling, snap to next visible slide HOT 3
- BUG: Browser history on drag HOT 4
- .
- How to Set up Automatic Scroll HOT 1
- Improve accessibility HOT 2
- Change the transition direction
- Change transition direction
- Need to add slide specific text content to image in slider HOT 5
- Sliders won't work when is cache deleted HOT 1
- How to add a sound component in grapesjs
- How use jssor.slider.js in grapesjs HOT 1
- ios devices - While swiping right or left page scrolls vertically HOT 1
- Using the API methods in Vanilla JS HOT 2
- Next/Prev "buttons" don't work if above the slider element in the DOM HOT 1
- number of visible slide I suppose expect visible 3 but always show 4 #sadLife NOT WORKING!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lory.