[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1788226197513.jpg (101.2 KB, 1024x1024, img_1788226158746_hk7ii0ep.jpg)ImgOps Exif Google Yandex

45428 No.2100

found this deep dive into making the new
random()
function work everywhere via a polyfill. it is basically an old classic from css-tricks that explains how to simulate true randomness in browsers that do not support the spec yet. the implementation logic is actually pretty clever if you wanna avoid heavy javascript loops for every element. it relies on some creative math using existing css functions . does anyone else think we should stop relying on js for simple animations and just wait for native support? im sure it will be standard soon but until then, this is a solid workaround.

https://css-tricks.com/css-random-function-polyfill/

45428 No.2101

File: 1788227466461.jpg (164.64 KB, 1024x1024, img_1788227426747_6x7o0j3r.jpg)ImgOps Exif Google Yandex

waiting for native support is a trap for anyone working on production sites with strict cross-browser compatibility requirements



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">