Git Product home page Git Product logo

Comments (3)

ryuuart avatar ryuuart commented on July 28, 2024

Devlog: I tried to convert everything to web components. Initially, it was very clean, but then I realized there's a lot of inconsistencies with web components that make it really confusing to bundle as a library. Ironically, it's too restrictive. There's too many gotchas, and I would imagine Web Components to be useful in more specialized use cases, but not a replacement to existing systems atm. Unfortunately, I spent a bit too long on this exploration, but I absolutely learnt a lot.

from manawave.

ryuuart avatar ryuuart commented on July 28, 2024

CleanShot 2022-09-21 at 02 10 24

there's some confusing vector math in this im ngl... i figured out formula for having diagonal in any direction.
requirement for looping marquee => must traverse entire width or height of looped element
by applying a direction ie vector it means you can't traverse all of it => flashing before start and end state
to make the direction loop, you have to make sure the direction vector repeats until it == full w & height of marquee. but direction vector isn't whole number or in sync which means... we have to round it so vec matches repetitions while not having floating point imprecision...

from manawave.

ryuuart avatar ryuuart commented on July 28, 2024

I studied the Fly By Jing website, and I've gained an understanding how they do their slider hehehehehehehe. So it's true it's a marquee, but essentially, a debounce function is a applied while the user drags the slider. When they're done, it resets to the original intended transform of the entire slider. It also seems they animate the whole thing, not just by element.

from manawave.

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.