Posted in site documentation
5575
1:24 am, September 2, 2021
 

make the view number zoom when mouse over or active

Lets make the view number in the header widget area a bit more exciting...

Zoom on mouse over with css. 

Lets add this effect here: Using Transform Scale In Css To Zoom On Hover Over

Simple change but makes it a bit more interesting. 

HTML

<div class='views-header'><i class="fas fa-eye"></i> 123456</div>

CSS

.views-header {
	transition: all 0.3s;
  	text-align:center;
}
.views-header:hover {
	transition: all 0.3s;
	transform: scale(1.2);
}

Scripts

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css" />
123456

View Statistics
This Week
42
This Month
541
This Year
572

No Items Found.

Add Comment
Type in a Nick Name here
 
Related Search Terms
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
I believe that in order to better your knowledge base, it takes a lot of failing in order to succeed. I don't consider anything a failure as long as you get back up and you learn from your own mistakes.
Unknown
Random CSS Property

scrollbar-color

The scrollbar-color CSS property sets the color of the scrollbar track and thumb.
scrollbar-color css reference