How to add animation in SVG PanZoom - svgpanzoom

Can anyone help me to add animation when you zoom on the SVG using the panzoom library? I've already seen a solution about pan animation however I want a zoom animation. Please someone help... Thanks in advance.

Related

HTML/CSS to Animate Gif (or video) on Hover based on mouse position

I'm wondering if there's a way to animate a gif or video based on where my mouse is hovering in relation to the frame.
I think the best example of what I mean would be, if the gif is of someone turning around 360, I would want the person to be facing forward when the mouse in on the left of the frame, turned around when in the center of the frame, facing forward again when at the right of the frame (and all the in-betweens).
Effectively, using a mouse hover as a drag function for a video timeline
Let me know if you have any ideas or if you need more details.
If need be, I can upload some example gifs/videos to clarify my purpose.
Thank you all so much in advance.
You can use transform: rotate() on a class in CSS.
Here is demo.

Create flip animation with origami

How to create 3d card flip animation with Facebook origami. I have tried so much and I couldn't find a way to do this any help would be really appreciated.
Please check the sample video provided on this question

Shine Icon/Image with canvas

I've been learning a bit about canvas and something that caught my attention (mostly because i had no idea how to do it when i saw) it's the shine and the nice animation that google did in their logo here:
http://www.google.com/chromebook/
I would like to know if someone have any idea or know how to do it =]
Thanks
You should definitely see the other discussion here:
How to create a shiny logo like Google Chromebooks website
It wouldn't be hard to make yourself, simply consider having a canvas with an css background-image on it and all you need to do is start an animation on the mouseover event.
The animation draws a radial gradient with a radius that increases over time, then it draws a line that is affected by a linear gradient that moves from left to right.
If basic animation on the canvas itself is something new to you then I suggest you do a search for online tutorials about canvas animation.

HMTL5 canvas and full color spectrum?

I have looked online for the default gradient co-ordinates for a full colour spectrum ranging from everything from black to white to all colours, does anyone know where I could find some documentation on this?
Or can anyone point me in the right direction as to how I would work it out?
Thanks
for html5 canvas you can prefer following links
i hope it will be useful to you.
https://developer.mozilla.org/en/Canvas_tutorial
http://www.williammalone.com/articles/html5-canvas-example/

How to create a glimmer animation like the Google +1 Button onHover

On Google, move your mouse over the faded out +1 button. You'll notice the image animates with a type of glimmer? Like a light going across the image. They are using an image for this but I'd like to know how to do this in CSS3. Any ideas for on hover? Also, anyone know what this effect is called?
Thanks
In their case, they are using a sprite, and then animating through it.
Unfortunately, it's not yet possible to animate css3 gradients, and background-position seems to have no effect on it. You'll just have to do with images at the moment.