Search

Nalezeno "Center": 438

Movin’ Modals Along a Path


Modals always be just appearin'. You might see one once in a while that slides in from one of the edges, or uses some kind of scale/opacity thing to appear from "above" or "below." But we can get weirder than that. Why not have them come in on an offset-path? Just a swoopy arc is kinda fun. ...

Prevent Page Scrolling When a Modal is Open


Please stop me if you've heard this one before. You open a modal, scroll through it, close it, and wind up somewhere else on the page than you were when you opened the modal. That's because modals are elements on a page just like any other. It may stay in place (assuming that's what it's meant...

China Releases New Crypto Rankings


China’s Center for Information and Industry Development has released its latest rankings of 35 crypto projects that were evaluated over the past two months. While several top positions remain unchanged, Bitcoin has climbed up the overall ranking. Also read: Indian Supreme Court Postpones...

The “Inside” Problem


So, you're working on a design. You need a full-width container element because the design has a background-color that goes from edge-to-edge horizontally. But the content inside doesn’t necessarily need to be edge-to-edge. You want to: Limit the width (for large screens) Pad the edges Center...

Change Color of SVG on Hover


There are a lot of different ways to use SVG. Depending on which way, the tactic for recoloring that SVG in different states or conditions — :hover, :active, :focus, class name change, etc. — is different. Let's look at the ways. Inline SVG Inline SVG is my favorite way to use...

Russian Prosecutors Fail to Block Crypto Website


A court case in Russia has signaled a change in the attitude authorities have towards the cryptocurrency space, at least on first glance. An online portal helping traders find the best exchange options for their digital assets will be allowed to restore normal operations. That’s after...

Getting To Know The MutationObserver API


MutationObserver watches the DOM, specifically the places you tell it to, like: document.querySelector('#watch-this'); ...and it can tell you (trigger a callback) when stuff happens — like when a child is added, removed, changed, or a number of other things. I used it just the other day...

Simulating Mouse Movement


If you've ever had to display an interactive animation during a live talk or a class, then you may know that it's not always easy to interact with your slides and while talking. This happened to me when I needed to show this particles demo to my students. I didn't want to have to stay next to...

Creating a Custom Element from Scratch


In the last article, we got our hands dirty with Web Components by creating an HTML template that is in the document but not rendered until we need it. Next up, we’re going to continue our quest to create a custom element version of the dialog component below which currently only uses...

Control Icons with Font Size


Here’s a nifty trick from Andy Bell that now seems a little obvious in hindsight: if you set an SVG to have a width and height of 1em then you can change the size of it with the font-size property. Try and change the font-size on the body element below to see the icon scale with the text: ...

Colorful Typographic Experiments


There have been some interesting, boundary-pushing typography-related experiments lately. I was trying to think of a joke like "somethings in the descenders" but I just can't find something that will stand on its own leg without being easy to counter. Codrin Pavel created a fascinating multi-color...

Quick! What’s the Difference Between Flexbox and Grid?


Let's go rapid fire and try to answer this question with quick points rather than long explanations. There are a lot of similarities between flexbox and grid, starting with the fact that they are used for layout and much more powerful than any layout technique that came before them. They...

Slide an Image to Reveal Text with CSS Animations


I want to take a closer look at the CSS animation property and walk through an effect that I used on my own portfolio website: making text appear from behind a moving object. Here’s an isolated example if you’d like to see the final product. Here’s what we're going to work with: See the...

Microsoft odstavuje Windows Media Center. A na kahánku má i Windows Media Player


Windows Media Center je prostředí, kterým chtěl Microsoft dostat operační systém do obýváků. Nadstavba pro Windows umožňovala pohodlné ovládání dálkovým ovladačem a přístup k multimediálnímu obsahu v počítači. Prostředí už není od nástupu Windows 10 dále vyvíjeno, nyní mu končí podpora online

Centering: The Newest Coolest Way vs. The Oldest Coolest Way


This isn't a comprehensive guide to centering things. We have that! This is just a little observation about old and new. One of the trickier things related to centering in CSS is when you need to center both vertically and horizontally and you don't know the width or height of what you...

Vertically Centering with Flexbox


Vertically centering sibling child contents is a task we’ve long needed on the web but has always seemed way more difficult than it should be.  We initially used tables to accomplish the task, then moved on to CSS and JavaScript tricks because table layout was horribly inefficient —...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace