css布局实现可调节速度的电风扇旋转动画效果代码
代码语言:html
所属分类:动画
代码描述:css布局实现可调节速度的电风扇旋转动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap'); html, body { height: 100%; width: 100%; background: #FFF8E6; display: grid; place-items: center; } main { position: relative; } .fan-footer { background: #FFF; border: 1px solid #E6DFCF; height: 30px; width: 180px; border-radius: 50px 50px 100% 100%; position: relative; bottom: -100px; box-shadow: -3px 6px 4px 0px rgba(189,189,189,0.72); } .fan-body { position: absolute; bottom: 10px; left: 65px; background: #FFF; border: 1px solid #E6DFCF; height: 180px; width: 50px; display: flex; justify-content: center; border-radius: 50px 50px 100% 100%; } .motor { height: 50px; width: 50px; border-radius: 50%; display: grid; place-items: center; } .fan { height: 30px; width: 30px; border-radius: 50%; position: relative; } .fan, .blade, .motor { background: #FFF; border: 1px solid #E6DFCF; } .curve { position: relative; height: 50px; width: 50px; border: 2px solid #E6DFCF; top: 10px; left: 10px; border-radius: 60% 30% 60% 10px; } .blade { position: absolute; height: 100px; width: 10.........完整代码请登录后点击上方下载按钮下载查看
网友评论0