F'in sweet
webflow hacks
webflow hacks
#
25

Detect the user's mobile OS and run a function

Example use cases

  • Run only certain animations and processes fora mobile OS that can support it
  • Show a special message or button to download an app specific to that mobile OS

Tags

Javascript
User Experience
Design
Development

Video walkthrough

Email yourself this video, so you could watch it later

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Live example

Code breakdown

Inside <head> tag
Before </body> tag
Success Page: Before </body> tag
F'in sweet
webflow hacks
Clonable Project
All of our hacks are packed into one clonable Webflow project
This is Hack
#
25
in the project
Clone project on webflow
Let's CHAT
Subscribe to our youtube channel
Subscribe
Stay updated with
F'in sweet
webflow hacks
Subscribe to email updates