css悬停文字弹出效果

代码语言:html

所属分类:悬停

代码描述:css悬停文字弹出效果

代码标签: 弹出 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/bootstrap.4.3.1.min.css">
    <style>
        .card {
            overflow: hidden;
        }

        .card-reveal .card-body {
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            bottom: 0;
            height: 100%;
            width: 100%;
            text-align: center;
        }

        .card-reveal .card-body .card-title {
            font-size: .75rem;
            margin: 0;
            text-transform: uppercase;
            font-weight: bolder;
            color: #4d4d4d;
        }


            .card-reveal .card-body {
                height: 100%;
                bottom: -100%;
                -webkit-transition: bottom .2s ease-in-out;
                transition: bottom .2s ease-in-out;
            }

            .card-reveal .card-img-top {
                -webkit-transition: -webkit-transform .5s ease-in-out;
                transition: -webkit-transform .5s ease-in-out;
                transition: transform .5s ease-in-out;
                transition: transform .5s ease-in-out, -webkit-transform .5s ease-in-out;
            }

            .card-reveal:hover .card-body {
                bottom: 0;
                background-color: rgba(255, 255, 255, 0.7);
            }

            .card-reveal:hover .card-img-top {
                -webkit-transform: scale(1.3);
                transform: scale(1.3);
            }
      

@media (min-width: 576px) and (max-width: 1199.98px) {
            .card-columns {
                -webkit-column-count: 2;
                -moz-column-count: 2;
                column-count: 2;
            }
        }


    </style>
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0