background preloader


Facebook Twitter

HYBICON - Better together. jQuery DrawSVG. SVG Modal Window. Svg/svgo. CIRCULUS.SVG: The SVG Circular Menu Generator. So you've picked your menu style and downloaded an all-new SVG menu.

CIRCULUS.SVG: The SVG Circular Menu Generator

What then? Here is everything you need to know to customize your menu and embed it in your page. Dissecting The Code The code generated by the above generator is straightforward and—if you are familiar with SVG—fairly simple to customize. You almost don't need to do anything except add your own icons to the menu, add a label or icon to the menu's trigger—if you want, and then embed the menu directly into your page. Before we get into adding your own icons, let's first get a quick overview of how the generated code is structured. Okay that looks like a lot. The style element contains the default styles.

Adding Your Icons As mentioned in the previous section, all you need to do is copy your icon's content into the <symbol>s and, if you want, add or change any class names and IDs. After adding your icons, you reference each one in the <use> elements inside the items. And the code for the above example is: Styling The Menu. Svgpocketguide/ at master · jonitrythall/svgpocketguide. DeSVG. Vivus.js - svg animation. Tips For Optimising SVG Delivery For The Web. SVGs are a great asset in our responsive web design toolkit.

Tips For Optimising SVG Delivery For The Web

But just like any other image format, there are certain steps you should take to make sure you’re delivering optimised resources that don’t have a negative impact on your page’s performance. Here are some things that you can do to make sure you’re delivering better SVGs for the web. 1. Enable Gzip on your SVGs (if it’s not already enabled) SVGs are text-based, and thus gzip really well. When an SVG is gzipped, it is referred to as an “SVGZ” image and uses the corresponding .svgz filename extension.

As a matter of fact, Appendix G of the SVG specification — that contains a list of features in SVG that promote small file sizes — contains a list of example compression rates resulting from gzipping a bunch of SVGs. The following table shows a few examples from the tests available in the appendix: Elastic SVG Elements. Some inspiration for elastic components with SVG shape animations for enhanced UI interactions.

Elastic SVG Elements

View demo Download source Today we’d like to share some inspiration for adding elasticity to elements. The idea is to integrate an SVG element into a component and then animate it from one path to another with an elastic animation. Using SVGs like this can make things like menus, buttons or other elements more interesting and make the interaction look more organic with a natural feel to it. It’s of course important to keep things subtle and not exaggerate the bounciness. For animating the SVGs, we use Snap.svg, the excellent JavaScript SVG library for modern browsers. The icons used in some of the demos are from the one and only Font Awesome icon set by Dave Gandy. For the demo with the draggable & droppable elements we use Dragabilly by David DeSandro. Integrating SVG Data Using JavaScript. Development Almost every person in the web development community is aware of SVG (also referred to as Scalable Vector Graphics).

Integrating SVG Data Using JavaScript

SVG is nothing more than an image format (just like JPEG and GIF) used to define vector based graphics. However, SVG has some advantages over the other image formats, two of the most important ones are listed below: It can scale to any size without affecting the clarity of the image (except for very tiny images).SVG images can be created as well as edited using any text editor. So, if you want to inject SVG into your projects there are several ways to do so. ConnorAtherton/walkway. Alexk111/SVG-Morpheus. DrawSVGPlugin. DrawSVGPlugin allows you to progressively reveal (or hide) the stroke of an SVG <path>, <line>, <polyline>, <polygon>, <rect>, or <ellipse> and you can even animate outward from the center of the stroke (or any position/segment).


It does this by controlling the stroke-dashoffset and stroke-dasharray CSS properties. Watch the video The video below illustrates the many ways DrawSVGPlugin can be used and will get you up and running fast. Demo Click through the demo below to see the various ways you can provide values to DrawSVGPlugin. See the Pen DrawSVGPlugin Values: carl click next by GreenSock (@GreenSock) on CodePen. Fully integrated Since DrawSVGPlugin is part of GSAP, you can use it in any TweenLite, TweenMax, TimelineLite or TimelineMax animation. See the Pen All Shape Types by GreenSock (@GreenSock) on CodePen.

More details For more detailed usage notes please consult the DrawSVGPlugin API documentation. Get your hands on DrawSVGPlugin. Dboudro/AnimateSVGText. SVG Morpheus - Morph SVG icons. Animated SVG Icons: Using Snap.svg to animate SVG icons. SVG Animation and CSS Transforms: A Complicated Love Story. The following is a guest post by Jack Doyle, author of the GreenSock Animation Platform (GSAP).

SVG Animation and CSS Transforms: A Complicated Love Story

Jack has been deep in the woods of web animation for a long time, trying to make it easier and better. He's written here before, talking about how JavaScript animation can be the most performant choice (Google even recommends it). This time, he focuses on SVG animation, some pretty scary issues you may come across while manipulating them with CSS, and how you can solve those issues. SVG is all the rage these days, and browser support is generally excellent...with one glaring exception: CSS transforms. This is particularly painful when it comes to animation because scale, position, rotation, and skew are so fundamental. Buckle up, because we're in for a bumpy ride.

Browser bugs & inconsistencies First, check out these animated GIFs showing the exact same CSS animation of two <rect> elements in various browsers (at least as of November 2014): Vivus.js - svg animation. SVG animation using jquery. Tips for Creating Accessible SVG. A different form of accessible data – a 3d topographical map of Diventer, Netherlands.

Tips for Creating Accessible SVG

Photo: Ronald Rugenbrink Scalable Vector Graphics (SVG) exists in a quantum state of accessibility. Which is to say that SVG is both accessible and inaccessible at the same time. Animate SVG icons with CSS and Snap. How to optimize SVG code and animate an SVG icon using CSS and Snap.svg library.

Animate SVG icons with CSS and Snap

Browser support ie Chrome Firefox Safari Opera 9+ Working with SVG files is not an option anymore. With a huge amount of high definition devices out there, it’s not sustainable to export different sizes of the same bitmap assets and target specific device resolutions through CSS media queries. We need to rely on vector graphics whenever it’s possible. Today’s resource is a very simple icon, that we imported as inline SVG into our index.html file. Animated SVG Icon. SVG animation tool. Structuring, Grouping, and Referencing in SVG – The <code><g></code>, <code><use></code>, <code><defs></code> and <code><symbol></code> Elements. SVG comes with its own ways for structuring a document by means of certain SVG elements that allow us to define, group, and reference objects within the document.

Structuring, Grouping, and Referencing in SVG – The <code><g></code>, <code><use></code>, <code><defs></code> and <code><symbol></code> Elements

These elements make reusing elements easy, while maintaining clean and readable code. In this article we'll go over these elements, highlighting the difference between them and the advantages of each one. Smarter svg filters · svg. By Mike Sierra Summary This guide shows you how to build SVG image processing filters to create interesting visual effects.

smarter svg filters · svg

It shows how to apply these effects within an SVG graphic, and how to apply them to HTML content using the filter CSS property. The power of SVG filters is matched by the depth and complexity of available options. It takes a good deal of practice to master the many filter effects and understand how to combine them. Artifact Austin: Leaving Pixels Behind - Todd Parker - Google Slides. Adding touch gestures and mouse controls to a 3D CSS cube. An update to the original 3D cube (from July 2009 no less), I’ve added touch gesture support (iOS) and click-and-drag behaviour.

Animation is incredibly smooth on the iPhone, even the 3G model. Arrow key presses will still rotate the cube, and ESC will reset it. Experiment: 3D cube with touch gestures and click and drag One year on and the cube still only works in Safari. Chrome, which says it supports webkit-perspective and webkit-transform, still renders differently. Firefox doesn’t support 3D transforms yet. Experiment updated for Firefox 10 which supports 3D transforms.

It works relatively simply: on click the start co-ordinates are saved and on drag the difference between current drag position and starting co-ordinates are applied to the cube as a transform, which is completed after the specified transition duration. Indus/VLEX. SVG Tabs (Using an SVG Shape as Template) An excellent feature of SVG is that you can define a shape (or set of shapes) once, and then use it multiple times throughout a page. You can even apply different fills and filters and whatnot to the different versions. SVG templating, if you will. Let's see if we can put that to good use by creating some tabs. I learned this was possible through Oleg Solomka's article on Codrops. Clever stuff! It works like this: Define the shape (could be a circle or rect or polygon or any of the shapes, or a group of them wrapped in a <g>).Give that shape an ID.Hide that shape.Use the shape where needed with <use>.

That looks like this in HTML: You can then reference those different uses of the template individually and do whatever you like to them. SVG Icons FTW. Despite the growing popularity of SVG, its time around and excellent browser support, we have a lack of good vector icon approaches. It's time to fill this gap and use SVG as icons in our web projects. A lot of great methodologies and principles arose making our CSS more and more modular, structured and flexible.

But think about your icons. Using raster graphics for icons means that they are not manageable in CSS. What if we need to change a color of an icon for its hover/active/focus state? But fortunately we’ve had icon fonts coming to the rescue. It’s plain text, which means they can be gzipped to up to 95%It’s a vector graphic, which means it can be scaled to any size making it Retina readyIt’s one source file, which means a minimum of HTTP requestsIt’s a font – you can easily change size, color, shape and add a shadowBrowser support for older browsers possible (e.g.

Snap.svg - Home. Rethinking Responsive SVG. Advertisement If you haven’t seen Joe Harrison’s responsive icons technique yet, you’ll most probably be impressed as much as I was when I first discovered it. In this article, I’d like to explore what we can do with SVG beyond “traditional” scalable vector graphics that are used to replace bitmap PNGs. In fact, we can see SVG as an independent module that encapsulates CSS for the customization of views as well as the responsive behavior that also encapsulates JavaScript for the interaction logic. Now, let’s dig a bit deeper into this technique. Responsive Images: Experimenting with Context-Aware Image Sizing.