1. Blog
  2. Blogging Tips
  3. Technology

Hover.css – CSS3 Library With More Than 40 Hovering Effects

When dealing with the issue of trying to get a users attention, there are many ways for you to achieve this. For special cases, hover is a great way to draw attention to a link or button. Normally, hover works by changing the element color or gradient state when users move their cursors over it. But with a lot of features in CSS3, a lot of things can also be customized with the hover effect. One of them is applying animation. And Hover.css can make it happen with ease.

Hover.css is a free CSS library to easily apply animation using the hover effect. You can apply the hover in call to actions, buttons, logos, images and much more. This library comes with over 40 effects to choose from and they’re categorized according to the following: 2D transforms, border transitions, shadow and glow transitions, speech bubbles, and page curls.

Recommended Reading: How To Create Bounce Effect With CSS3 Animation

Getting Started With Hover

To get started, you need to download Hover then put the hover.css file into your project folder. Or if you prefer, you may use hover-min.css, a more compact version, which is smaller and quicker to load. Lastly, link the file into your web page like so:

 <head> .. <link href="css/hover.css" rel="stylesheet"> .. </head> 

Adding Hover Into An Element

To add a cool hover effect into your element, just include the effect name into the element class. You can see the live demo of all available effects in the Hover landing page. Make sure to only use lowercase letters and if it has space in between, simply replace it with a dash.

Let’s say, I have the following link markup:

 <a href="#" class="btn">SUBMIT</a> 

If styled properly, the link comes out like so:

The link has changed to look like a button. But when I move the cursor over it, the button won’t change and stays static. With one of Hover effect, Hover Shadow, I edit the markup and add it a class like so:

 <a href="#" class="btn hover-shadow">SUBMIT</a> 

Now the button has a cool hover effect floating with a shadow underneath it just like the following GIF demo.

Some Hack And Customisation

If you open hover.css with an editor, you’ll find that each effect comes with some default properties. These properties give the element the most desired result both for the display and the look. Below are the default properties, go ahead and customize them to meet your needs:

  • display : required for an effect to work.
  • transform : used for CSS3 transforms to improve the performance on mobile and tablet
  • box-shadow : give transparent box shadow causing edges of CSS3 transformed elements on mobile/tablet look smoother

Final Thought

Hover is another best practice of CSS3 implementation. But as most of the effects such as transitions, transforms and animations are using new CSS3 features, you will need to do some extra work on old browsers that don’t support these features to make sure that the fallback hover effect works well.



Contributor
No Comments
Comments to: Hover.css – CSS3 Library With More Than 40 Hovering Effects

Recent Articles

Good Reads

Proper car servicing can significantly reduce fuel consumption. Key Areas Affecting Fuel Efficiency Engine oil quality Tyre pressure Air filter condition Spark plugs How Servicing Helps Clean components allow the engine to run efficiently. Fuel Savings Over Time Regular servicing can improve mileage by 10–15%. Environmental Benefits Lower fuel usage reduces emissions. Conclusion Servicing saves […]
While most garages are trustworthy, some drivers fall victim to service scams. Common UK Car Service Scams Unnecessary part replacements Inflated labour charges Vague service reports Fake MOT failures Warning Signs Pressure to approve repairs immediately No written estimate Poor online reviews How to Protect Yourself Ask for old parts back Get written quotes Check […]

Worlwide

Overview VipsPM – Project Management Suite is a Powerful web-based Application. VipsPM is a perfect tool to fulfill all your project management needs like managing Projects, Tasks, Defects, Incidents, Timesheets, Meetings, Appointments, Files, Documents, Users, Clients, Departments, ToDos, Project Planning, Holidays and Reports. It has simple yet efficient layout will make managing projects easier than […]
Proper car servicing can significantly reduce fuel consumption. Key Areas Affecting Fuel Efficiency Engine oil quality Tyre pressure Air filter condition Spark plugs How Servicing Helps Clean components allow the engine to run efficiently. Fuel Savings Over Time Regular servicing can improve mileage by 10–15%. Environmental Benefits Lower fuel usage reduces emissions. Conclusion Servicing saves […]
While most garages are trustworthy, some drivers fall victim to service scams. Common UK Car Service Scams Unnecessary part replacements Inflated labour charges Vague service reports Fake MOT failures Warning Signs Pressure to approve repairs immediately No written estimate Poor online reviews How to Protect Yourself Ask for old parts back Get written quotes Check […]
Selecting the right service centre is crucial for quality and trust. What to Look For DVSA or IMI certification Transparent pricing Genuine or OEM parts Positive customer reviews Independent Garage vs Dealership Independent garages offer better value, while dealerships provide brand-specific expertise. Questions to Ask Before Booking Is the warranty protected? Are parts guaranteed? Is […]

Trending

Turquoise Jewelry is one of the ancient healing stones used for personal adornment and astrological benefits. The rare greenish blue-colored pectolite is celebrated for its enchanting powers among many crystal lovers. It is a hydrated phosphate of copper and aluminum that ranks 5 to 6 on the Mohs hardness scale. It is deemed a protective […]
Singapore is recognised globally as a prime destination for foreign investors. Its business structure is well-developed, and its tax system is favourable to business owners. The government has a strong support system for entrepreneurs and provides legal protection for intellectual property rights. All of these conditions create an environment that is ideal for Singapore company […]
2020 has been a year that represents aggressive and sustained volatility with a confluence of unexpected situations, including economic shifts and market disturbance confluence. The COVID-19 pandemic forces businesses to adjust their methods of operations to ensure survival. These adjustments become the trajectory and guidance of what 2021 should look like and what companies should […]
COVID-19 pandemic has affected Thailand’s economy and labor market. World Bank’s Thailand Economic Monitor predicted that it would take Thailand over two years to return to its pre-COVID-19 growth and domestic product output levels. Although the country has successfully curbed the pandemic tide over the last few months, the economy remains severely hit. Nevertheless, heavily […]