Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rhyuen/discards

Where I put one off HTML/CSS projects.
https://github.com/rhyuen/discards

Last synced: about 2 months ago
JSON representation

Where I put one off HTML/CSS projects.

Awesome Lists containing this project

README

        

# About

Where css goes to die.

## What I learned / Got metaphorically punched in the face by

### October 9, 2021

```css
li{
aspect-ratio: 1;
}

/*above can replace below*/

li:after {
display: block;
padding-bottom: 100%;
content: "";
}

```

### December 2, 2021

```html
words describing the image
```

`loading="lazy` only loads the image content if the image in the element is visible to the user (in the viewport).

[web.dev](https://web.dev/building-a-media-scroller-component/)

### December 16, 2021

When using translateY/X and wanting a smooth transition, use the 'transform' property.

[Stack Overflow](https://stackoverflow.com/a/22043021)