DZone
Web Dev Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Web Dev Zone > Harvey.js - A State Manager For CSS Media Queries

Harvey.js - A State Manager For CSS Media Queries

Hirvesh Munogee user avatar by
Hirvesh Munogee
·
May. 25, 12 · Web Dev Zone · Interview
Like (0)
Save
Tweet
4.84K Views

Join the DZone community and get the full member experience.

Join For Free

harvey.js is a state manager for css media queries.  media queries are great for visual tweaks and simple behavioral switches, but they become difficult to rely on when behaviors change for larger or smaller devices. harvey helps you monitor and manage those changes by firing an event whenever your media query is activated.

this method is preferable to relying on a screen resize event because you only receive an event when the query is matched - not for every screen resize. less testing and more doing.



requirements : none
demo : http:/ / harvesthq. github. com/ harvey/ #demo
license : free

Media queries CSS Database Media (communication)

Published at DZone with permission of Hirvesh Munogee, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Is ERP Testing? - A Brief Guide
  • Choosing Between REST and GraphQL
  • Role of Development Team in an Agile Environment
  • How to Determine if Microservices Architecture Is Right for Your Business?

Comments

Web Dev Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo