Posted in site documentation
5612
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
156
This Month
578
This Year
609

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
Nothing, to my way of thinking, is a better proof of a well ordered mind than a man's ability to stop just where he is and pass some time in his own company.
Seneca
Random CSS Property

:past

The :past CSS pseudo-class selector is a time-dimensional pseudo-class that will match for any element which appears entirely before an element that matches :current. For example in a video with captions which are being displayed by WebVTT.
:past css reference