Articles
Influencing Web Layouts with Print Layouts
Jen Simmons has a compelling talk (video) where she calls out web design as being far too dominated by the HEADER CONTENT SIDEBAR FOOTER pattern we’re all too familiar with. Print design, despite so often being dubbed “dead” …
stroke-dashoffset
The stroke-dashoffset
property in CSS defines the location along an SVG path where the dash of a stroke
will begin. The higher the number, the further along the path the dashes will begin.
.module {
stroke-dashoffset: 100;
}
Remember:
- This
stroke-linecap
The stroke-linecap
property in CSS is for setting the starting and ending points of a border on SVG shapes.
.module {
stroke-linecap: round;
}
Remember:
- This will override a presentation attribute
<path stroke-linecap="square" ... />
- This will not override an
stroke-width
The stroke-width
property in CSS is for setting the width of a border on SVG shapes.
.module {
stroke-width: 2;
}
Remember:
- This will override a presentation attribute
<path stroke-width="2" ... />
- This will not override an inline style e.g.
stroke
The stroke
property in CSS is for adding a border to SVG shapes.
.module {
stroke: black;
}
Remember:
- This will override a presentation attribute
<path stroke="#fff" ... />
- This will not override an inline style e.g.
<path style="stroke: #fff;"
The Sass Ampersand
The &
is an extremely useful feature in Sass (and Less). It’s used when nesting. It can be a nice time-saver when you know how to use it, or a bit of a time-waster when you’re struggling and could …
Moving Along a Curved Path in CSS
motion-path
is specced and already has some support. But there is another way to replicate curved motion paths, as Tobias Ahlin points out:
…… if we add a container around the object we want to animate, we can apply
Optimizing SVGs for Web Use
An in-depth series of posts by Andreas Larsen that walks us through the process of how to (hand) optimize SVGs. He suggests optimizations that it’s unlikely software could do for you. Things like changing the viewBox size to accommodate simple, …
Safari 9.1
There are lots of exciting new features rolling out in Safari 9.1 such as support for the picture
element, enhancements to the web inspector, CSS variables and gesture events for iOS. Although, what I’m most excited for is the OpenType …
A Specificity Battle! (and other trickery)
The following is a guest adventure by Francisco Dias from HubSpot. I saw Francisco and Cris Necochea give this as a quick, fun presentation at the Show & Tell at CSS Dev Conf this year. He graciously agreed to …