Skip to content

Commit a518521

Browse files
Update README.md
1 parent b5408bc commit a518521

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ Rasterization API
5555
-----------------
5656
In order to improve technology we are trying to promote standardized native Rasterization API for JavaScript. Help us to be better and to add this cool feature to browsers by spreading the [article](http://pixelscommander.com/en/javascript/state-of-html-content-rasterization-draw-html-to-canvas-image/) and [proposal draft](https://gist.github.com/PixelsCommander/a0b5882139cbb8a1781c#file-proposal-md).
5757

58+
Fast way to animate
59+
-------------------
60+
The most performant way to animate HTML-GL tags is to change tag's `styleGL.transform` in the same way you operate on `style.transform`. Velocity.js copy from HTML-GL repository (https://github.com/PixelsCommander/HTML-GL/blob/master/demo/js/vendor/velocity.js) have this optimization built-in. Feel free to use it in the way described in official Velocity.js documentation.
61+
5862
Animating HTML-GL tag children
59-
----------------------------
63+
------------------------------
6064
Since it is very efficient to make transformations (move, rotate, scale, change opacity) on HTML-GL tags it becomes very slow to animate it's children until they are HTML-GL tags too. This happens because of necessity to rasterize and send HTML-GL tag texture to GPU.
6165

62-
Animating
63-
---------
64-
The most performant way to animate HTML-GL tags is to change tag's `styleGL.transform` in the same way you operate on `style.transform`. Velocity.js copy from HTML-GL repository (https://github.com/PixelsCommander/HTML-GL/blob/master/demo/js/vendor/velocity.js) have this optimization built-in. Feel free to use it in the way described in official Velocity.js documentation.
65-
6666
License
6767
-------
6868
MIT: http://mit-license.org/

0 commit comments

Comments
 (0)