Comments (4)
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.
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:
- http://stackoverflow.com/questions/13103828/css3-translate-in-percent/13104099#13104099
- The spec: http://www.w3.org/TR/css3-transforms/
transform
pen: http://codepen.io/jeremyckahn/pen/ghJjq- Analogous
left
/top
pen: http://codepen.io/jeremyckahn/pen/dJvoL
Definitely a bummer, as I think it would be a really nice feature to have.
from stylie.
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.
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)
- Stop button does not reset slider HOT 1
- Add titles to input labels HOT 1
- Automatically make keyframes on alteration HOT 4
- Bezier paths HOT 4
- Transform translate applied twice, once in pixels, once in percentage HOT 5
- As a user, I want to login via Twitter
- As a user, I want to publish an animation
- As a user, I want to modify and re-publish an existing animation
- As a user, I want to be able to save animations linked to my cloud account
- property 'centerToPath' of undefined HOT 4
- TODO: Use https
- Moving keyframes is broken
- How to Scale HOT 1
- Task: Add a code of conduct
- Any way to make the object being animated rotate to face the direction of travel? HOT 1
- Error installing HOT 8
- Fine grained control of curve with custom bezier field HOT 2
- TODO: Implement Reddit suggestions v2
- Stop animation??? HOT 1
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 stylie.