Categories
Web development

Organize SVG with <use>, but beware of transforms

Organizing SVG files with use and symbol elements offers many advantages but some quirks may arise when using transforms/animations.

Categories
Graphics JavaScript Web development

Magnify images with a draggable loupe

In a previous post we’ve seen how to create a magnifying glass effect with canvas. But the position of the lens was static, and of course in a useful application a user must be able to move the lens to a point of interest. Let’s make aVue component for that!

Categories
Web development

SVG sprites transforms

Investigation if working with SVG sprites is practical. Especially in combination with transforms.

Categories
Animation Graphics JavaScript Web development

Move eased dot along a curve

Demonstration of the effect of timing functions on an animation, using a Bezier curve controller. How to use: Drag the handles (green dots) of the control below to adjust the way the red dot runs its loop. It starts and ends in its ‘home’, but the speed may vary, and the dot may even temporarily […]

Categories
Animation JavaScript

Move a dot along a path

Create a dot moving along a path using SVG and JavaScript

Categories
CSS Web development

Transitions of SVG icons

How can we style SVG images on a web page? For instance to define a transition on hovering. Using the <img> tag will not work. Neither will the CSS property background-image. We must put the SVG element inline in the HTML code. Now we can style the SVG elements using CSS selectors. Include external file […]