图片卡片悬浮放大遮罩效果代码
代码语言:html
所属分类:布局界面
代码描述:图片卡片悬浮放大遮罩效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body { background: #333333; } .view { margin: 10px; float: left; overflow: hidden; position: relative; text-align: center; cursor: default; } .view .mask, .view .content { position: absolute; overflow: hidden; top: 0; left: 0; } .view img { display: block; position: relative; } .view a.info { display: inline-block; text-decoration: none; padding: 0; text-indent: -9999px; width: 20px; height: 20px; } .effect img { opacity: 1; -moz-transform: scale(1,1); -webkit-transform: scale(1,1); -o-transform: scale(1,1); -ms-transform: scale(1,1); transform: scale(1,1); -webkit-transition: all 0.2s ease-in; -moz-transition: all 0.2s ease-in; -o-transition: all 0.2s ease-in; -ms-transition: all 0.2s ease-in; transition: all 0.2s ease-in; } .effect .mask { opacity: 0; overflow: visible; border-color: rgba(0,0,0,0.7); border-style: solid; border-width: 150px; width: 0; height: 0; -moz-transition: -moz-transform 0.2s 0.1s ease-out, opacity 0.3s ease-in-out; -webkit-transition: -webkit-transform 0.2s 0.1s ease-out, opacity 0.3s ease-in-out; -o-transition: -o-transform 0.2s 0.1s ease-out, opacity 0.3s ease-in-out; -ms-transition: -ms-transform 0.2s 0.1s ease-out, opacity 0.3s ease-in-out; transition: .........完整代码请登录后点击上方下载按钮下载查看
网友评论0