UI Components์ถ์ฒ: CSS-Tricks์กฐํ์ 15
Whatโs !important #4: Videos & View Transitions, Named Media Queries, How Browsers Work, and More
By Daniel Schwarz2026๋
1์ 31์ผ
**Whatโs !important #4: Videos & View Transitions, Named Media Queries, How Browsers Work, and More**
Neither Chrome, Safari, nor Firefox have shipped new features in the last couple of weeks, but fear not because leading this issue of Whatโs !important is some of the web development industryโs best educators with, frankly, some killer content. Maintaining video state across different pages using view transitions Chris Coyier demonstrates how to maintain a videoโs state across different pages using CSS view transitions. He notes that this is fairly easy to do with same-page view transitions, but with multi-page view transitions youโll need to leverage JavaScriptโs pageswap event to save information about the videoโs state in sessionStorage as a JSON string (works with audio and iframes too), and then use that information to restore the state on pagereveal. Yes, thereโs a tiiiiny bit of audio stutter because weโre technically faking it, but itโs still super neat. Also, CodePen, which Iโm sure you already know was founded by Chris, announced a private beta of CodePen 2.0, which you can request to be a part of...
---
**[devsupporter ํด์ค]**
์ด ๊ธฐ์ฌ๋ CSS-Tricks์์ ์ ๊ณตํ๋ ์ต์ ๊ฐ๋ฐ ๋ํฅ์ ๋๋ค. ๊ด๋ จ ๋๊ตฌ๋ ๊ธฐ์ ์ ๋ํด ๋ ์์๋ณด์๋ ค๋ฉด ์๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
Neither Chrome, Safari, nor Firefox have shipped new features in the last couple of weeks, but fear not because leading this issue of Whatโs !important is some of the web development industryโs best educators with, frankly, some killer content. Maintaining video state across different pages using view transitions Chris Coyier demonstrates how to maintain a videoโs state across different pages using CSS view transitions. He notes that this is fairly easy to do with same-page view transitions, but with multi-page view transitions youโll need to leverage JavaScriptโs pageswap event to save information about the videoโs state in sessionStorage as a JSON string (works with audio and iframes too), and then use that information to restore the state on pagereveal. Yes, thereโs a tiiiiny bit of audio stutter because weโre technically faking it, but itโs still super neat. Also, CodePen, which Iโm sure you already know was founded by Chris, announced a private beta of CodePen 2.0, which you can request to be a part of...
---
**[devsupporter ํด์ค]**
์ด ๊ธฐ์ฌ๋ CSS-Tricks์์ ์ ๊ณตํ๋ ์ต์ ๊ฐ๋ฐ ๋ํฅ์ ๋๋ค. ๊ด๋ จ ๋๊ตฌ๋ ๊ธฐ์ ์ ๋ํด ๋ ์์๋ณด์๋ ค๋ฉด ์๋ณธ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ์ธ์.
