47 minutes ago · Tech · hide

Animated banners Eagle-eyed readers might have noticed that my footer now features a banner-exchange scheme1 You might even spot one of my banners in circulation: I made those animated GIFs... but I didn't open a single piece of graphics software! Instead, I used HTML and CSS code (plus SVG assets I already had) to design them right in my browser. Then I wrote some code to capture stills and combine them into GIF files. It's a simple and effective way to use Web coding skills I to make Web graphics. Making a banner Here's how it's done: First, I created a HTML element of the correct width and height, position: relative; (to make it easy to position things "within" it) and overflow: hidden; (so that anything "too large" gets clipped-off) rather than trying to make the banner larger: <div id="sample-banner" style="position: relative; overflow: hidden; width: 400px; height: 40px; background-color: var(--alt2-bg); background-image: url('green-dust-and-scratches.png'),…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town