纯css实现卡片悬浮切换效果

代码语言:html

所属分类:选项卡

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

<!DOCTYPE html>
<html lang="en">
<head>

    <title>CSS Card Hover Effects | Html &amp; CSS - From: Online Tutorials</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            background: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: 'Courier New', Courier, monospace;
        }

        .bloco-geral {
            width: 90%;
            position: relative;
            display: flex;
            justify-content: space-between;
        }

        .bloco-geral .cartao {
            position: relative;

        }
        .bloco-geral .cartao .face {
            width: 300px;
            height: 300px;
            transition: 0.5s;
        }

        .bloco-geral .cartao .face.face1 {
            position: relative;
            background: green;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1;
            transform: translateY(150px);

        }

        .bloco-ger.........完整代码请登录后点击上方下载按钮下载查看

网友评论0