Comments (2)
According to the web, mutation observers would be the only way. But at least you only have to have one observer in the document. http://stackoverflow.com/questions/20364687/mutationobserver-and-current-computed-css-styles
from html-gl.
Thank you for hint on one observer. Could save some resources.
Mutations observing is basically done, you may try it here http://pixelscommander.com/polygon/htmlgl/demo/basic-webgl.html . The issue is about finding more performant ways of setting transformations since Mutation Observer is something I would not like to execute 60 times per second even if it is faster than Mutation Events. Also there is no way to avoid DOM Element moving when using real style.transform and that was one of aims - do not animate DOM because it is expensive. So there is a backdoor for performance lovers - styleGL.transform property on DOM node which works as getter/setter and is just a direct access to WebGl sprite`s coordinates, rotation and scale.
from html-gl.
Related Issues (20)
- I need an explanation HOT 2
- Support CSS matrixes for transformations HOT 1
- effects-manager add
- You do not need to use a PIXI Stage any more
- Advanced demo bugs HOT 2
- Documentation on HTML/CSS support? HOT 1
- [Feature Request] - Native parallax!
- Images not being displayed
- [Question] Status of HTML-GL v2 HOT 3
- Ionic 3 Error: "Cannot find module html-gl" HOT 2
- HTML-GL can be used to render to video? HOT 4
- Absolute positioning on top-level element causes it not to render
- border-radius 50% is ignored
- Incompatible with bootstrap HOT 3
- Will it boost css rendering generally or only animations? HOT 1
- When v.2 is going to be released? HOT 2
- Selecting text
- General Question: Can this library be used in conjunction with Animate.css ? HOT 1
- Mouse Events in v2.
- Cleanup non issue
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 html-gl.