Code Monkey home page Code Monkey logo

Comments (2)

omundy avatar omundy commented on September 24, 2024

Update: I realize now the width attribute is necessary to figure out scrolling distances and that it is probably computed dynamically using padding and contents of the div itself. I was able to alter my own styling to accommodate the way that new widths are computed and assigned and remedy my problem. Thanks.

from film_roll.

straydogstudio avatar straydogstudio commented on September 24, 2024

I will add more about this process to the documentation. In short, the plugin measures the widths of all elements before the surrounding div's are expanded for shuttling back and forth. Knowing this, you can ensure all elements are styled the way you want before the plugin is applied. When the window is resized it does this again, removing the expanded div and measuring the child element widths. As you guessed, it uses that width to position everything, so it has to apply it to the content.

It is difficult if all elements have different heights, but it is still possible to make it work. I have a solution in place that uses the first image to configure the size of all other elements. It uses some of the event triggers in FilmRoll. I also have responsive image solutions in the works. I will post this at some point. Let me know if you are interested and I'll bump this thread when it is up.

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.