HOT
22bulbjungle
No Result
View All Result
22bulbjungle
No Result
View All Result
Home Web Development CSS

How To Create an Overlay Zoom Hover Effect in CSS [CODE]

in CSS, Web Development
3 min read
406 13
0
576
SHARES
2.6k
VIEWS
Share on FacebookShare on Twitter

CSS transform Property

The transform CSS property allows you to turn, scale, slant, or decipher a component.

ValueDescription
noneDefines that there should be no transformation
matrix(n,n,n,n,n,n)Defines a 2D transformation, using a matrix of six values
matrix3d
(n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n)
Defines a 3D transformation, using a 4×4 matrix of 16 values
translate(x,y)Defines a 2D translation
translate3d(x,y,z)Defines a 3D translation
translateX(x)Defines a translation, using only the value for the X-axis
translateY(y)Defines a translation, using only the value for the Y-axis
translateZ(z)Defines a 3D translation, using only the value for the Z-axis
scale(x,y)Defines a 2D scale transformation
scale3d(x,y,z)Defines a 3D scale transformation
scaleX(x)Defines a scale transformation by giving a value for the X-axis
scaleY(y)Defines a scale transformation by giving a value for the Y-axis
scaleZ(z)Defines a 3D scale transformation by giving a value for the Z-axis
rotate(angle)Defines a 2D rotation, the angle is specified in the parameter
rotate3d(x,y,z,angle)Defines a 3D rotation
rotateX(angle)Defines a 3D rotation along the X-axis
rotateY(angle)Defines a 3D rotation along the Y-axis
rotateZ(angle)Defines a 3D rotation along the Z-axis
skew(x-angle,y-angle)Defines a 2D skew transformation along the X- and the Y-axis
skewX(angle)Defines a 2D skew transformation along the X-axis
skewY(angle)Defines a 2D skew transformation along the Y-axis
perspective(n)Defines a perspective view for a 3D transformed element
initialSets this property to its default value.
inheritInherits this property from its parent element.

Table from: W3Schools

RelatedPosts

CSS Tricks: Expand Card on Hover Effect (Game of Thrones theme | CODE INSIDE)

How to Create a Direct Download Link in WordPress

How to Change Chrome DevTools Theme Color (Developer Tools)

<div class="block-wrapper"><img src="https://cdn.pixabay.com/photo/2017/09/09/18/25/living-room-2732939_960_720.jpg" />
<div class="overlay">
<div class="content">
<h1>Stay at home</h1>
WHO is providing advice to help you and your family be healthy at home, with tips on staying physically active, looking after our mental health, quitting tobacco and healthy parenting.

</div>
</div>
</div>
body{
font-family: 'Lato';
color: #fff
}
.block-wrapper{
position:relative;
max-width: 1100px;
width: 100%;
border-radius: 10px;
margin: auto;
overflow:hidden;
}
.content{
font-size: 20px;
position:absolute;
top: 50%;
left: 50%;
width: 80%;
text-align:center;
transform:translate(-50%, -50%)

}
.overlay{
position:absolute;
bottom: 0;
left: 0;
right: 0;
width:100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.7);
transform: scale(0);
transition: .4s ease
}
.block-wrapper:hover .overlay{
transform: scale(1)
}
img{
display:block;
width: 100%;
height:auto
}
h1{
font-family: 'Cookie';
font-size: 100px;
text-shadow: 0 0 15px #3c3c3c;
margin-bottom: 25px
}
p{
text-shadow: 0 0 10px #000;
font-size: 24px;
}
Tags: CSS Hover Effectcss image hover effects
Share230Tweet144Share58

Related Posts

Window cards expand on hover with CSS
CSS

CSS Tricks: Expand Card on Hover Effect (Game of Thrones theme | CODE INSIDE)

by business22bulbjungle
September 21, 2020
0

<div class="drogon"><img src="drogon.png" /></div> <div class="house-lists"> <div class="house" style="background-image: url('stark.png');"> <div class="house-inner"> <div class="sigil"><img src="sigil/sigil-stark.png" /></div> <div class="house-name">Stark</div> </div> </div> <div class="house"...

Read more
How to Create a download link in wordpress

How to Create a Direct Download Link in WordPress

April 27, 2020
How to Change Chrome DevTools Theme Color (Developer Tools)

How to Change Chrome DevTools Theme Color (Developer Tools)

April 27, 2020
How to Get Your PayPal API Credentials (Username, Password, and Signature to Woocommerce 2020)

How to Get Your PayPal API Credentials

April 27, 2020

Trending

How to create news ticker horizontal- scrolling text
CSS

How to Create a Horizontal News Ticker with CSS Only (Scrolling Texts | CODE)

11 months ago
Frontend vs Backend
Web Development

Frontend vs Backend Comparison (Languages, Frameworks and Libraries)

12 months ago
How to hide or remove woocommerce my account either tabs
Video

How to Remove My Account Menu Links in Woocommerce

12 months ago
How to Create Paypal Sandbox Account in 2020
Ecommerce

How to Create Paypal Sandbox Test Account in 2020

1 year ago
How to Create a CSS Equal Height Columns Create Div Columns with the Same Height-min
CSS

How to Create a CSS Equal Height Columns (Create Div Columns with the Same Height)

1 year ago

Free Do it yourself tutorials on CSS, HTML, Photoshop, Wordpress, and Woocommerce to help you learn web development and graphic design.

Follow Us

Recent News

Windows Multiple Copy and Paste (Copy and Paste in One Go)

Windows Multiple Copy and Paste (Copy and Paste in One Go)

December 19, 2020
Window cards expand on hover with CSS

CSS Tricks: Expand Card on Hover Effect (Game of Thrones theme | CODE INSIDE)

September 21, 2020

Categories

  • CSS
  • Ecommerce
  • Graphic Design
  • Javascript
  • PC Tips
  • Photoshop
  • Responsive design
  • Video
  • Web Development
  • Woocommerce
  • Wordpress
  • Home
  • Blog
  • Web Development
  • Graphic Design

© 2020 22BulbJungle.

No Result
View All Result
  • Home
  • Blog
  • Web Development
    • CSS
    • Javascript
    • WordPress
  • Graphic Design
    • Photoshop

© 2020 22BulbJungle.

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy and Cookie Policy.