css实现菜单点击左侧弹出动画效果代码
代码语言:html
所属分类:菜单导航
代码描述:css实现菜单点击左侧弹出动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap"); * { box-sizing: border-box; } body { width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; background-color: #84a0f4; background-image: linear-gradient(to top, #84a0f4 0%, #c2e9fb 100%); font-family: "Montserrat", sans-serif; } .list-container { position: relative; } .list-container.active .more-button-list { opacity: 1; transform: scale(1); } .list-container.active .more-button-list-item { -webkit-animation: fadeInItem 0.6s 0.2s forwards; animation: fadeInItem 0.6s 0.2s forwards; } .list-container.active .more-button-list-item:nth-child(2) { -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } .list-container.active .more-button-list-item:nth-child(3) { -webkit-animation-delay: 0.6s; animation-delay: 0.6s; } .list-container.active .more-button-list-item:nth-child(4) { -webkit-animation-delay: 0.8s; animation-delay: 0.8s; } .list-container.active .more-button { -webkit-animation: onePulse 0.6s forwards linear; animation: onePulse 0.6s forwards linear; } .list-container.active .menu-icon-wrapper { transform: rotate(-45deg); } .list-container.active .me.........完整代码请登录后点击上方下载按钮下载查看
网友评论0