svg+css实现汉堡鼠标悬停点击旋转动画效果代码
代码语言:html
所属分类:悬停
代码描述:svg+css实现汉堡鼠标悬停点击旋转动画效果代码
代码标签: svg css 汉堡 鼠标 悬停 点击 旋转 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
:root {
font-family: "Manrope", serif;
font-optical-sizing: auto;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
--sprite-image: url("https://assets.codepen.io/36869/burger2.webp");
}
@layer base {
body {
margin: 0;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
box-sizing: border-box;
}
body:not(:hover) .sprite {
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0