Skip to content

Instantly share code, notes, and snippets.

View thommorais's full-sized avatar
⚒️
Working from home

Thom Morais thommorais

⚒️
Working from home
View GitHub Profile
@thommorais
thommorais / transition-timing-functions
Last active July 17, 2025 02:35
transition-timing-functions.css
--ease-fluid: cubic-bezier(0.3, 0, 0, 1);
--ease-snappy: cubic-bezier(0.2, 0, 0, 1);
--ease-enter: cubic-bezier(0, 0.5, 0.5, 1);
--ease-move: cubic-bezier(0, 0.5, 0.5, 1);
--ease-exit: cubic-bezier(0.5, 0, 0, 1);
https://feathericons.com
https://www.streamlinehq.com
https://heroicons.com
https://icons.radix-ui.com
https://iconoir.com
@thommorais
thommorais / isMobile.js
Created February 15, 2018 20:54
Detecting Mobile Devices with JavaScript
const isMobile = {
Android: _ => navigator.userAgent.match(/Android/i),
BlackBerry: _ => navigator.userAgent.match(/BlackBerry/i),
iOS: _ => navigator.userAgent.match(/iPhone|iPad|iPod/i),
Opera: _ => navigator.userAgent.match(/Opera Mini/i),
Windows: _ => navigator.userAgent.match(/IEMobile/i),
any: _ => isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows()
}