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

Sapphire Gemstones have captivated mankind since early times both for their beauty and special powers, but also as one of the most revered spiritual stones. In Indian astrology, sapphire is numbered among the most transformative stones that help change a person’s career, mindset and relationships as well as his destiny. Regardless of whether you pick a blue […]
The beauty, astrological power, and rarity of gemstones have always been recognized and appreciated. Among them, White Sapphire (Safed Pukhraj), Kashmir Blue Sapphire, and Zambian Emerald are most prized. Each one, with its characteristics and symbolisms, serves its unique purpose. A buyer with sufficient knowledge would be able to use them for astrological, healing, or […]

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 […]
Sapphire Gemstones have captivated mankind since early times both for their beauty and special powers, but also as one of the most revered spiritual stones. In Indian astrology, sapphire is numbered among the most transformative stones that help change a person’s career, mindset and relationships as well as his destiny. Regardless of whether you pick a blue […]
The beauty, astrological power, and rarity of gemstones have always been recognized and appreciated. Among them, White Sapphire (Safed Pukhraj), Kashmir Blue Sapphire, and Zambian Emerald are most prized. Each one, with its characteristics and symbolisms, serves its unique purpose. A buyer with sufficient knowledge would be able to use them for astrological, healing, or […]
When considering the ideal stone for astrology or jewelry, gemstone enthusiasts frequently discuss white sapphire and purple sapphire. Both hailing from the corundum family, they are celebrated for their luster, durability, and everlasting beauty. Nevertheless, the gemstones vary significantly in worth because the provenance determines the rarity, demand, and price of each stone. Let us […]

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