I am looking for suggestions on best practice for a jQuery script for a responsive web.
In full screen mode it will be a horizontal list of word. When a word is clicked, the corresponding text will be visible.
When screen size reaches mobile size it shall change behavior and let the user swipe through the words.
But I can’t find out what would be the best approach, to separate versions, and toggle the display value with media queries or a script that take screen size in consideration.