Search results for using svg stroke attributes 210d9a8a7d3dba61b021c02b94575512

Learning SVG

by Brian Rinaldi

100;” /> <path d=”M550,50 L550,330 A70,85 0,1 300,330″ style=”stroke: #dd524b; stroke-opacity: .6; fill: transparent; stroke-width: 100; mask: url(#first-u-mask)” /> <path d=”M300,50 L300,330 A70,85 0,1 50,330″ style=”stroke: #dd524b; stroke-opacity: .5; fill:…

Using SVG Stroke Attributes

by Brian Rinaldi

certain attributes. In this article we have reviewed the basics of SVG stroke attributes to explore their general purpose and in-browser editing capabilities. This article was originally published at http://jonibologna.com/usingsvgstrokeattributes/…

Creating Image Galleries with Clipped Images Using CSS Pointer Events and SVG

by Brian Rinaldi

SVG block as an .svg file and point to it using an <object> tag, like in the example below. <object id=”object” type=”image/svg+xml” data=”/tests/pointerEvents/images/tv-path.svg”> Your browser does not support SVG </object>…

Picture showing a magazine layout with columns of different heights

CSS Regions Matter

by Brian Rinaldi

…And Reusability Of Code We can create reusable code using CSS Regions, similar to the way it is possible to create usable components using Web Components. The following examples show…

Animating Inline SVG Icons

by Brian Rinaldi

<svg class=”heart-icon heart-icon-2″ version=”1.1″ width=”91px” height=”85px” viewBox=”0 90.65 85.04″> <path class=”heart-2″ fill=”none” stroke=”#FFFFFF” stroke-width=”5″ stroke- linecap=”round” stroke-linejoin=”round” stroke-miterlimit=”10″ d=”M45.137,23.041c4.912-24.596,40.457-27.775,42.128-0.435c1.398,22.88-21.333,40.717-42.128,50.522 M45.137,23.041 C40.225-1.555,5.057-4.734,3.387,22.606c-1.398,22.88,20.955,40.717,41.75,50.522″/> </svg> Here’s the CSS: .heart-2 { transform-origin: bottom; transition:…

Taming Asynchronous JavaScript Programming with ECMAScript6

by Brian Rinaldi

…= require(‘underscore’) string = require(‘underscore.string’) linklib = require(‘linklib’) { using, _ } = require(‘./chain’).chain.init() using(jQuery) using(underscore) using(string) using(console) using(linklib) getUser = (user) -> _(“https://npmjs.org/~#{user}”) .get() .extractLinks() .filter( -> /package/.test(arguments[0]) )…

How to test AngularJS SVG directives

by Mike Godfrey

I’ll explain how these steps work. A static HTML page to assert against would contain: <!– two_slices_25_75.html –> <div> <svg height=”210″ width=”210″> <g transform=”translate(100,100), scale(100)” stroke-width=”0.01″ stroke=”white”> <path d=”M0,0L1,0A1,1,1,0,1,0,1Z”></path> <path…

45 Useful JavaScript Tips, Tricks and Best Practices

by Saad Mousliki

…item from array Use splice instead of using delete to delete an item from an array. Using delete replaces the item with undefined instead of the removing it from the…

Understanding the SVG viewBox and viewport

by Brian Rinaldi

basic alterations of an SVG viewport and viewBox which hopefully demonstrates the power and usefulness of thoroughly defining SVG workspaces. Happy viewBox setting! This article was originally published at http://jonibologna.com/svg-viewbox-and-viewport/…

Drawing and Animating with Two.js and Illustrator

by Brian Rinaldi

am rendering the straight SVG side-by-side with the two.js rendered SVG. I do this both to show how you render SVG using two.js but also to illustrate that there are…