Posted in site documentation
5484
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
150
This Month
638
This Year
481

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
Many of life's failures are people who did not realize how close they were to success when they gave up.
Thomas A. Edison
Random CSS Property

scroll-padding-inline-start

The scroll-padding-inline-start property defines offsets for the start edge in the inline dimension of the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the scrollport that are obscured by other content (such as fixed-positioned toolbars or sidebars) or to put more breathing room between a targeted element and the edges of the scrollport.
scroll-padding-inline-start css reference