Comments (12)
Doh. Yeah. I'll work on that. I forgot it wasn't rotating the content. Give me a day or two to provide a convenience function.
from film_roll.
Silly me. I should have looked at the code. It is working right. You have four items, so to link to the fourth item you would go to index 3: film_roll.moveToIndex(3)
With that your example page works correctly.
Question: if the index is beyond the last item, what would make sense to you? Do nothing? Throw a console error? Wrap around to the first item? Or stay as is?
from film_roll.
By the way, I notice you have this css in your example:
.slide:nth-child(even) { background-color: yellow; }
This will give inconsistent results, because the child elements are not always rotated. Therefore child elements will sometimes be even, and sometimes be odd. You probably used that only for the example, but I thought I'd clarify if you had it in production.
from film_roll.
Oh sorry my bet, it should have been film_roll.moveToIndex(3) and not film_roll.moveToIndex(4)
It's still not working for me though. When clicking the link-button first (not a link in the pager) the left slide will be missing.
I'm a designer so I'm not sure what solution is best from a programmers point of view.
But I think that a solution with a css-class that turns a link into a film_roll link might work best
e.g.
a class="film_roll_link" href="#name_of_slide">link to slide</a
With this solution no hard coding would be required and links can be set easily with html/css.
(For example the carouFredSel plugin handles links that way)
from film_roll.
Can you post what you are seeing? The demo you gave me didn't show blank spaces when I fixed the link.
How many children are in the carousel?
I'll take a look at carouFredSel.
from film_roll.
Hello,
the page on load:
http://www.workupload.com/file/M1yAJk5i
the page when clicking the 4th button of the pager:
http://www.workupload.com/file/C81dsaWl
the page when clicking the text-link, after page load (blue slide is missing)
http://www.workupload.com/file/7eGpjKty
from film_roll.
Can you send me that source? I think I have something different.
from film_roll.
Nevermind. I didn't have my browser wide enough.
from film_roll.
:)
from film_roll.
Uploaded a fix. Thanks for working with me on this. Let me know if it works.
I'll ping you if I get to a better link solution.
from film_roll.
I'm closing this since I haven't heard back from you. Do reopen it if you are still having problems.
from film_roll.
yes, working fine, thank you :)
from film_roll.
Related Issues (20)
- not centering in firefox with bootstrap 3 HOT 2
- How to : Clicking on items takes items to center HOT 8
- Feature Request: Active Item's position on left or right insted of centered HOT 13
- Centering Data HOT 5
- Feature Request : Forced Infinite/Endless Loop HOT 5
- Disable Next Prev Buttons if the carousel width is small HOT 3
- "film_roll:moved" does not trigger : When Carousel width is more than all carousels combined HOT 5
- Stop the film roll move to right (tune to center) before start HOT 3
- next / previous not working when START_INDEX set HOT 6
- Events triggered twice?
- Callbacks triggered twice? HOT 3
- If the content is smaller than the container : error scroll HOT 4
- Parameter force_rotate: true caused to hangs browser page sometime HOT 5
- Callback after film_roll is fully loaded HOT 3
- Method to destroy current FilmRoll gallery HOT 4
- Mixing up with Angularjs HOT 10
- How to use a function for configure_load ? HOT 2
- How to run two slide on the tab (responsive)? HOT 4
- Right side images not showing HOT 1
- Centre on specific slide? HOT 2
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 film_roll.