Code Monkey home page Code Monkey logo

Comments (12)

straydogstudio avatar straydogstudio commented on September 24, 2024

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.

straydogstudio avatar straydogstudio commented on September 24, 2024

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.

straydogstudio avatar straydogstudio commented on September 24, 2024

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.

MontroseSt avatar MontroseSt commented on September 24, 2024

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.

straydogstudio avatar straydogstudio commented on September 24, 2024

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.

MontroseSt avatar MontroseSt commented on September 24, 2024

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.

straydogstudio avatar straydogstudio commented on September 24, 2024

Can you send me that source? I think I have something different.

from film_roll.

straydogstudio avatar straydogstudio commented on September 24, 2024

Nevermind. I didn't have my browser wide enough.

from film_roll.

MontroseSt avatar MontroseSt commented on September 24, 2024

:)

from film_roll.

straydogstudio avatar straydogstudio commented on September 24, 2024

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.

straydogstudio avatar straydogstudio commented on September 24, 2024

I'm closing this since I haven't heard back from you. Do reopen it if you are still having problems.

from film_roll.

MontroseSt avatar MontroseSt commented on September 24, 2024

yes, working fine, thank you :)

from film_roll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.