svg+css实现一张图片实现更换00汽车效果代码

代码语言:html

所属分类:布局界面

代码描述:svg+css实现一张图片实现更换00汽车效果代码

代码标签: 图片 实现 更换 00 汽车 效果

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

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

<head>

    <meta charset="UTF-8">

    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.min.css">

    <style>
        body,
        html {
            margin: 0;
            padding: 0;
            height: 100%;
            width: 100%;
        }

        *,
        *:before,
        *:after {
            box-sizing: border-box;
        }

        .container {
            height: 100%;
            width: 100%;
        }
        .container svg {
            position: relative;
            z-index: 2;
            background-size: 100%;
            background-repeat: no-repeat;
            background-position: 50%;
            mix-blend-mode: multiply;
        }
        .container svg.shiny {
            mix-blend-mode: color-burn;
        }
        .container svg path {
            fill: transparent;
            transition: fill 160ms ease;
            will-change: fill;
        }
        .container img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: auto;
            z-index: 1;
        }

        .options {
            position: fixed;
            z-index: 3;
            bottom: 2rem;
            left: 2rem;
            display: flex;
            gap: 0.5rem;
        }
    </style>



</head>

<body>
    <div class="container">
        <svg xmlns="h.........完整代码请登录后点击上方下载按钮下载查看

网友评论0