Hover effect demo

Size
2,749 Kb
Views
22,264

How do I make an hover effect demo?

For someone needing help. What is a hover effect demo? How do you make a hover effect demo? This script and codes were developed by Rosh Jutherford on 04 September 2022, Sunday.

Hover effect demo Previews

Hover effect demo - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hover effect demo</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ html, body { background: rgb(248,248,248); width: 100%; height: 100%; font-family: "Helvetica Neue", sans-serif;
}
.item { width: 400px; height: 250px; position: relative; overflow: hidden; backface-visibility: hidden; margin: 50px auto; box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
}
.item:hover .photo, .item:hover .content{ transform: translate3d(0,-50px,0);
}
.item:hover .photo{ opacity: 0.7;
}
.item:hover a { transform: translate3d(0,0,0);
}
a { width: 50px; height: 50px; border-radius: 50%; background: rgb(170, 114, 116); position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; z-index: 1; line-height: 50px; text-align: center; color: #ffffff; transform: translate3d(0,-200px,0); transition: transform 0.25s ease; cursor: pointer;
}
.photo { dipslay: block; width: 100%; height: 100%; position: relative; float: left; background: url("https://25.media.tumblr.com/b03e53931e2264f97a3e93beae6d3053/tumblr_mtw7hple1a1st5lhmo1_1280.jpg") center center no-repeat; background-size: cover; transition: transform 0.25s ease, opacity 0.25s ease;
}
.content { width: 100%; text-align: center; float: left; height: 50px; transition: transform 0.25s ease; padding: 10px;
}
h1 { font-weight: normal; font-size: 18px;
}
p { font-weight: 100; font-size: 14px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="item"> <a>+</a> <span class="photo"></span> <div class="content"> <h1>This is the Title of the Item</h1> <p>This is a description of the item</p> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Hover effect demo - Script Codes CSS Codes

html, body { background: rgb(248,248,248); width: 100%; height: 100%; font-family: "Helvetica Neue", sans-serif;
}
.item { width: 400px; height: 250px; position: relative; overflow: hidden; backface-visibility: hidden; margin: 50px auto; box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
}
.item:hover .photo, .item:hover .content{ transform: translate3d(0,-50px,0);
}
.item:hover .photo{ opacity: 0.7;
}
.item:hover a { transform: translate3d(0,0,0);
}
a { width: 50px; height: 50px; border-radius: 50%; background: rgb(170, 114, 116); position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; z-index: 1; line-height: 50px; text-align: center; color: #ffffff; transform: translate3d(0,-200px,0); transition: transform 0.25s ease; cursor: pointer;
}
.photo { dipslay: block; width: 100%; height: 100%; position: relative; float: left; background: url("https://25.media.tumblr.com/b03e53931e2264f97a3e93beae6d3053/tumblr_mtw7hple1a1st5lhmo1_1280.jpg") center center no-repeat; background-size: cover; transition: transform 0.25s ease, opacity 0.25s ease;
}
.content { width: 100%; text-align: center; float: left; height: 50px; transition: transform 0.25s ease; padding: 10px;
}
h1 { font-weight: normal; font-size: 18px;
}
p { font-weight: 100; font-size: 14px;
}
Hover effect demo - Script Codes
Hover effect demo - Script Codes
Home Page Home
Developer Rosh Jutherford
Username the_ruther4d
Uploaded September 04, 2022
Rating 4
Size 2,749 Kb
Views 22,264
Do you need developer help for Hover effect demo?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Rosh Jutherford (the_ruther4d) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!