HTML & CSS / Cards / Text Over
Text Overlay Image
-
STEPS
1. html
Lorem Ipsum is simply dummy text of the printing
Lorem Ipsum is simply dummy text of the printing and setting industry
2. css
.blog { padding: 0 0 70px 0; } .blogleft { padding: 0 !important; } .blogleft .btn2 { position: absolute; top: 0; right: 25px; margin: 0; } .bpdd { padding: 0 25px 0 0 !important; } .blogbox { padding: 0 !important; overflow: hidden; margin: 10px 0 0 0; } .blogbox img { width: 100%; -webkit-transition: 2s; -moz-transition: 2s; -o-transition: 2s; transition: 2s; } .blogbox:hover img { -webkit-transform: scale(1.2, 1.2); -moz-transform: scale(1.2, 1.2); -o-transform: scale(1.2, 1.2); transform: scale(1.2, 1.2); } .bloghead { font-size: 16px; text-align: center; font-weight: 700; line-height: 22px; margin: 0; letter-spacing: .4px; padding: 0 0 5px 0; color: #333; -webkit-transition: .4s; -moz-transition: .4s; -o-transition: .4s; transition: .4s; } .blogbox .description { padding: 0 0 5px 0; text-align: center; font-size: 14px; line-height: 24px; -webkit-transition: .4s; -moz-transition: .4s; -o-transition: .4s; transition: .4s; } .blogbox a { font-size: 13px; text-align: center; font-weight: 700; line-height: 20px; margin: 0; letter-spacing: .4px; padding: 0; color: #333; } .blogbox:hover a { color: #fff; } .blogbox:hover .blogtext { background: none; } .blogbox a:hover, .blogbox a:focus { color: #fff; } .blogbox a svg { vertical-align: -2px; -webkit-transition: .4s; -moz-transition: .4s; -o-transition: .4s; transition: .4s; } .blogbox a:hover svg, .blogbox a:focus svg { margin: 0 0 0 3px; } .blogbox .blogtext { width: 90%; position: absolute; padding: 15px; z-index: 9; left: 5%; text-align: center; bottom: 15px; background: rgba(255, 255, 255, 0.7); -webkit-transition: .4s; -moz-transition: .4s; -o-transition: .4s; transition: .4s; } .blogbox .blogtext:before { position: absolute; content: ''; width: 100%; height: 0; bottom: 0; left: 0; z-index: -1; -webkit-transition: .4s; -moz-transition: .4s; -o-transition: .4s; transition: .4s; background: rgba(254, 89, 149, 1); background: -moz-linear-gradient(-45deg, rgba(254, 89, 149, 1) 0%, rgba(222, 164, 29, 1) 100%); background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(254, 89, 149, 1)), color-stop(100%, rgba(222, 164, 29, 1))); background: -webkit-linear-gradient(-45deg, rgba(254, 89, 149, 1) 0%, rgba(222, 164, 29, 1) 100%); background: -o-linear-gradient(-45deg, rgba(254, 89, 149, 1) 0%, rgba(222, 164, 29, 1) 100%); background: -ms-linear-gradient(-45deg, rgba(254, 89, 149, 1) 0%, rgba(222, 164, 29, 1) 100%); background: linear-gradient(135deg, rgba(254, 89, 149, 1) 0%, rgba(222, 164, 29, 1) 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fe5995', endColorstr='#dea41d', GradientType=1); } .blogbox:hover .blogtext:before { height: 100%; } .blogbox:hover .description, .blogbox:hover .bloghead { color: #fff; } .blogright { padding: 0 !important; } .blogright img { width: 100%; } .bpdd { padding: 0 10px 0 0 !important; } .bpdd2 { padding: 0 0 0 10px !important; }