I'd like to animate some CSS styles not supported by {N}.
For example, text-color, height of an element etc.
Any suggestions, ideas as to how this could be done.
A simple linear animation would be fine.
Thanks.
Related
I need to place my three.js canvas in the dom with a very specific CSS, but three.js is overriding its style by setting a pixel-based width and height every time the renderer is resized.
I override it back to what I want afterwards, but it usually ends up being visibly glitchy for one frame due to that.
Is there any way to make three.js not decide the style of the dom element for me?
WebGLRenderer.setSize has an optional parameter updateStyle which expects a boolean.
When false, it prevents three.js canvas from updating DOM element style. JSFiddle
Yes. Pass "false" as the 3rd parameter to renderer.setSize().
Basically I have an opaque View covering a screen, and I want to build an animation that is something like a (perfect circular) hole in the view forming in the center (so to reveal whats underneath) and expanding outwards.
I'm thinking that there could be a few creative ways to get this done, and that perhaps the most corresponding CSS property to play with would be 'clip-path'. If that is the case, I don't believe ReactNative Views offer that, and 3rd party libraries w/ SVG & clipping features seem like they wouldn't play well with Animating the effect.
Any ideas much appreciated!
You could use https://github.com/react-native-community/react-native-svg !
The library supports SVG's better and allows you to animate with Clip-path!
I have a simple Polymer app consisting of two elements. The first, x-app, element has the second element, x-inner, inside its local dom.
Inside the x-inner element I define a keyframe animation that is called spin that I apply on the :host. Inside the x-app I also apply the same animation name, spin, but the keyframe animation is not defined. Although, the spin animation works on both elements. It seems to me that the #keyframe leaks out from the inner element.
Is this the behaviour that is expected? Or do I define the #keyframe animation incorrectly?
Please see my jsbin for an example: jsbin
It is because you are using "Shady" DOM, which doen't really isolate the components CSS styles, as a real Shadow DOM would do.
Try defining shadow instead of shady and it will work.
jsbin example
Consider creating an SVG animation: a rectangle move into the scene from left side of the svg image and move out from right side and this is a loop.
(And i don't what to use canvas libraries or any javascript code).
[1] Is it possible to create this simple animation with any application (just like flash but with svg export) (I know Adobe Illustrator let us export vectors but not sure about animating theme).
[2] Also as SVG is vector based i intend to make this svg animating fluid (setting the width of svg to 100% an content scale automatically) is it also possible?
(I know how to do such these things using canvas libraries like snap.svg kinetic ... with bunch of js code i'm looking for some GUI App which let a graphic designer having no idea what JS is do it like Adobe Flash for example).
Any solution?
I am not sure about GUI App but fluid animations are possible. Look at the following elements: animate, animateMotion, animateTransform, animateColor.
Here are some examples and documentation:
MDN: animate, animateMotion
W3C
I trying to make a simple animated menu that slides in and out but i have stumbled on getting the div's to overlap as required.
http://jsfiddle.net/bluestreak/eQcsc/
It currently animates well but doesn't over lap. and I have tried all manner of combinations of positioning.
Give all your infomenu IDs position:absolute