Git Product home page Git Product logo

Comments (4)

jeremyckahn avatar jeremyckahn commented on July 3, 2024

Hi @braaam, I'm glad you're enjoying Stylie. I have given some though previously to how Stylie might handle screen offsets, as I also think it would be useful. However, I'm not sure how I might best integrate that with the rest of the UI. Generally, I think there needs to be some sort of additional UI to facilitate advanced and power user features; I'm pretty much out of room with control pane as it is now. Your canvas offset idea would be a useful addition, but I think it's too specific to belong in the control pane. I'll have to think about how to best approach this.

As for percentage units, I think that too would be useful. As a stopgap, I can add a <select> somewhere to change units. I'll need to make the integration a little more elegant in the long term, but that should be enough to get going with.

I don't have a ton of time lately to work on Stylie, but I'll keep this issue open until I can address it. Until there's a UI for it, you can use Rekapi to generate the CSS you need, as that's all Stylie is actually doing. Thanks for the suggestions!

from stylie.

jeremyckahn avatar jeremyckahn commented on July 3, 2024

So I did some research on this.

Apparently I misunderstood/forgot how the transform percentage unit works. I initially assumed that it works like left or top — that is, the value is relative to the container of the element being animated, not the element itself. It is, in fact, the other way around. So, just transforming Stylie's output to equivalent percentage values would not achieve the scaling effect you are looking for:

Definitely a bummer, as I think it would be a really nice feature to have.

from stylie.

jeremyckahn avatar jeremyckahn commented on July 3, 2024

I'm not sure if this helps you, but I just pushed a feature that allows you to orient an animation to the first keyframe: https://twitter.com/jeremyckahn/status/401859377490952193

from stylie.

braaam avatar braaam commented on July 3, 2024

Thanks for the heads up, that's pretty useful! Will definitely be helpful when using in a fixed pixel-size environment.

from stylie.

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.