纯css实现开门布局动画
代码语言:html
所属分类:布局界面
代码描述:纯css实现开门布局动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style type="text/css"> .door { width: 300px; height: 300px; margin: 100px auto; border: 1px solid gray; perspective: 500px; background: url('http://repo.bfw.wiki/bfwrepo/image/5e7d467b45154.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_400,h_400,/quality,q_90') no-repeat; background-size: 100% auto; position: relative; } .door > div { box-sizing: border-box; border: 1px solid black; } .left,.right { float: left; width: 50%; height: 100%; background-color: brown; transition: 1s; position: relative; } .left { .........完整代码请登录后点击上方下载按钮下载查看
网友评论0