js+css实现白天黑夜都在用的手机交互效果代码
代码语言:html
所属分类:其他
代码描述:js+css实现白天黑夜都在用的手机交互效果代码,暗示我们人类已经离不开手机了。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> :root { } body { margin: 0; height: 100vh; width: 100vw; display: flex; justify-content: center; overflow: hidden; align-items: center; /* mix-blend-mode: diffrence; */ background: linear-gradient(90deg, #ddf 50%, #223 50%); } /* .side { width: 50%; height: 100%; display: flex; align-items: center; overflow: hidden; } */ /* .dark { background: #222; justify-content: flex-end; } .light { background: #ddd; } */ /* .dark > .phone { height: 85%; transform: translateX(50%); color: #ddf; background: #ddf; } .light > .phone { transform: translateX(-50%); color: #222; background: #222; } */ #phone { height: 85%; border-radius: 4vh; aspect-ratio: 9/16; background: linear-gradient(-90deg, #223, #ddf); border: 1px solid; /* background: linear-gradient(-90deg, #ddf 50%, #223 50%); */ mix-blend-mode: color-burn; transform-style: preserve-3d; transform: perspective(10000px) rotateY(var(--rotateX)) rotateX(var(-.........完整代码请登录后点击上方下载按钮下载查看
网友评论0