Comments (1)
Hello,
Some other people have asked that same thing on http://matthewlein.com/experiments/slots.html
I can imagine 2 scenarios that might want to do this, and I'm not sure which applies to you:
- Multiple slots that have cosmetic differences. Meaning the slots have the same number of items, same dimensions, they just have different images/colors/numbers/fonts. AKA How can I style the slots differently?
It should be possible, but a little outside the planned design. I would suggest after the .jSlots() is run, you loop through the slots and add unique classes, like jslot--1, slot--2, or slot--even slot--odd. Or alternatively, you could use CSS :n-th child to target different slots.
I should warn you that if your classes change the dimensions of slot items, it may not work right as those values have been calculated already.
- Multiple slots that have different numbers of items or dimensions.
The script by default will just copy a single UL to make the slots. I suppose it might be possible to create multiple ULs and .jSlot() them separately, but with the same timing numbers, and set them all to trigger on the same event. I haven't tried it, but in my mind that would work. However, then you would have to set up your own system to make them talk to each other and coordinate wins, like the script does now. Certainly seems doable though.
from jquery-jslots.
Related Issues (19)
- Suggestion: Allow us to specify winning number HOT 3
- Change spinner option
- Horizontal spin HOT 1
- Get the selected <li> HOT 1
- How to call it on a jquery function HOT 2
- How to Set END NUMBERS Solved
- Set one winning slot not more than one? HOT 1
- Set time not working ?
- multiple winner numbers HOT 1
- AutoRun when execute the code HOT 1
- index.html HOT 2
- Up/down option
- loops: Array instead of Number
- Do not clone only the first li item HOT 1
- .slot unordered-list margin/padding issue HOT 2
- start on mouse over or another event HOT 2
- Fired Event on click and then pass the endNumber HOT 2
- is it possible to store the array of winning numbers so that after the box has finished spinning i can get all the numbers HOT 1
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 jquery-jslots.