Posted in site documentation
5481
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
147
This Month
635
This Year
478

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


Me
Random CSS Property

scroll-padding-top

The scroll-padding-top property defines offsets for the top 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-top css reference