div+css实现蝙蝠猫鼠标悬浮变形动画效果代码

代码语言:html

所属分类:悬停

代码描述:div+css实现蝙蝠猫鼠标悬浮变形动画效果代码

代码标签: div css 蝙蝠 鼠标 悬浮 变形 动画

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

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

<head>
  <meta charset="UTF-8">

  

  
  
<style>
:root {
	--gray: #4a4649;
    --black: #29272a;
    --dark: #383339;
}


body {
	margin: 0;
	padding: 0;
	background: radial-gradient(#000000 15%, #200229);
	overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
	width: 100vw;
    height: 100vh;
}

body *, *:before, *:after {
	box-sizing: border-box;
	position: absolute;
	margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(#FFF9 0%, transparent .00004%, transparent .163345%);
    filter: drop-shadow(0px 0px 1px #fff) drop-shadow(0px 0px 2px #fff) drop-shadow(0px 0px 3px #fff);
    z-index: -3;
}

.moon {
	position: absolute;
	width: 65vmin;
	height: 65vmin;
	left: 20vmin;
    left: calc(calc(50vw - 32.5vmin) - 15vw);
	top: 15vmin;
	opacity: 1;
	border-radius: 100%;
	animation: start-moon 3s ease 0s 1;
	background: radial-gradient(circle at 50% 50%,#fdfdfd .........完整代码请登录后点击上方下载按钮下载查看

网友评论0