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

Student safety is one of the highest priorities for schools, parents, and transportation providers. Every day, thousands of students travel to and from schools across Qatar using school buses. Ensuring that these journeys are safe, efficient, and well-monitored is essential for educational institutions and families alike. Traditional school transportation systems often lack real-time visibility, making […]
As businesses in Qatar continue to expand, managing vehicle fleets efficiently has become increasingly important. Companies operating in logistics, transportation, construction, retail distribution, oil and gas, facility management, and service industries depend on vehicles to deliver products, transport employees, and support daily operations. However, managing multiple vehicles without proper monitoring systems can create significant challenges. […]

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 […]
Student safety is one of the highest priorities for schools, parents, and transportation providers. Every day, thousands of students travel to and from schools across Qatar using school buses. Ensuring that these journeys are safe, efficient, and well-monitored is essential for educational institutions and families alike. Traditional school transportation systems often lack real-time visibility, making […]
As businesses in Qatar continue to expand, managing vehicle fleets efficiently has become increasingly important. Companies operating in logistics, transportation, construction, retail distribution, oil and gas, facility management, and service industries depend on vehicles to deliver products, transport employees, and support daily operations. However, managing multiple vehicles without proper monitoring systems can create significant challenges. […]
The construction industry in Qatar is one of the country’s most important economic sectors. Large-scale infrastructure projects, commercial developments, residential communities, and industrial facilities rely heavily on transportation, heavy machinery, and construction equipment to meet project deadlines. Managing a large fleet of vehicles and equipment across multiple construction sites can be challenging. Construction companies often […]

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 […]