CSS

语言:

CSSSCSS

确定

html,

body {

position: relative;

height: 100%;

font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;

}

body {

background: #222;

}

body:before {

content: 'Loading...';

position: absolute;

top: 50%;

left: 0%;

width: 100%;

text-align: center;

color: #fff;

}

body.data-loaded {

background: #fff;

}

body.data-loaded:before {

display: none;

}

.gradients {

position: fixed;

top: 0;

left: 0;

width: 100%;

height: 100%;

z-index: 1;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-box-align: center;

-webkit-align-items: center;

-ms-flex-align: center;

align-items: center;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

}

div[class^="canvas"] {

width: 100%;

height: 100%;

position: absolute;

display: -webkit-box;

display: -webkit-flex;

display: -ms-flexbox;

display: flex;

-webkit-box-align: center;

-webkit-align-items: center;

-ms-flex-align: center;

align-items: center;

-webkit-box-pack: center;

-webkit-justify-content: center;

-ms-flex-pack: center;

justify-content: center;

top: 0;

left: 0;

opacity: 0;

-webkit-transition: all ease 300ms;

transition: all ease 300ms;

}

div[class^="canvas"].active {

opacity: 1;

}

.title-block {

position: relative;

display: inline;

opacity: 0;

-webkit-transition: all ease 300ms;

transition: all ease 300ms;

}

.title-block a:not(#title) {

display: block;

position: absolute;

width: 33px;

height: 20px;

-webkit-transition: all ease 300ms;

transition: all ease 300ms;

}

.title-block a:not(#title):before,

.title-block a:not(#title):after {

content: '';

width: 20px;

height: 4px;

background: white;

position: absolute;

top: 8px;

left: 0;

-webkit-transition: all ease 300ms;

transition: all ease 300ms;

box-shadow: 0px 0px 2px black;

}

.title-block a:not(#title):before {

-webkit-transform: rotate(45deg);

transform: rotate(45deg);

left: 11px;

}

.title-block a:not(#title):after {

-webkit-transform: rotate(-45deg);

transform: rotate(-45deg);

}

.title-block .up {

top: -3em;

left: calc(50% - 20px);

}

.title-block .up.move {

top: -4em;

}

.title-block .down {

bottom: -3em;

left: calc(50% - 20px);

-webkit-transform: rotate(-180deg);

transform: rotate(-180deg);

}

.title-block .down.move {

bottom: -4em;

}

.title-block .right {

top: calc( 50% - 11px);

right: -3em;

-webkit-transform: rotate(-270deg);

transform: rotate(-270deg);

}

.title-block .right.move {

right: -4em;

}

.title-block .left {

top: calc( 50% - 11px);

left: -3em;

-webkit-transform: rotate(-90deg);

transform: rotate(-90deg);

}

.title-block .left.move {

left: -4em;

}

.title-block:hover #title {

color: white;

}

.title-block.active {

opacity: 1;

}

#title {

text-decoration: none;

position: relative;

font-family: 'Montserrat', sans-serif;

font-size: 3rem;

text-transform: uppercase;

text-align: center;

letter-spacing: 1px;

color: rgba(255, 255, 255, 0.9);

-webkit-transition: all ease 350ms;

transition: all ease 350ms;

text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4), 1px 5px 8px rgba(0, 0, 0, 0.3), 1px 10px 12px rgba(0, 0, 0, 0.1);

}

#title.active {

opacity: 1;

}

#title:hover {

letter-spacing: 5px;

}

.colours {

width: calc(100% - 4em);

padding: 0 2em;

position: fixed;

bottom: 2em;

z-index: 1;

}

.colours span {

font-size: 0.75em;

color: #fff;

letter-spacing: 1px;

text-shadow: 1px 1px 1px black;

text-transform: uppercase;

padding: 1em;

background: rgba(255, 255, 255, 0);

border-radius: 10px;

-webkit-transition: all ease 300ms;

transition: all ease 300ms;

}

.colours span:hover {

background: rgba(255, 255, 255, 0.7);

color: #000;

text-shadow: 1px 1px 1px transparent;

}

.colours #colour-1 {

float: left;

}

.colours #colour-2 {

float: right;

}

.hint-container {

position: fixed;

bottom: 10vh;

width: 100%;

text-align: center;

-webkit-transition: all linear 500ms;

transition: all linear 500ms;

opacity: 0;

}

.hint-container .hint {

display: inline-block;

border-radius: 8px;

padding: 0.5em 0.75em;

background: rgba(33, 33, 33, 0.5);

color: #fff;

}

.hint-container.used {

opacity: 0;

}

.title-block.active + .hint-container:not(.used) {

opacity: 1;

}

用html5颜色自动渐变,HTML5渐变背景色生成器相关推荐

  1. html5 颜色弹窗 位置,HTML5之placeholder属性以及如何更改placeholder属性中文字颜色大小位置...

    熟悉HTML5的人应该都知道,placeholder这个属性是HTML5中新增的属性,该属性的作用是规定可描述输入字段预期值的简短的提示信息,该提示会在用户输入之前显示在输入字段中,会在用户输入字段后 ...

  2. html5中自动播放,HTML5自动播放一次(HTML5 autoplay once)

    HTML5自动播放一次(HTML5 autoplay once) 以下javascript函数提供并自动播放音频文件(通过HTML 5音频标签),在6秒时切换mp3播放并从头开始循环+自动播放音频. ...

  3. html5网页自动下滑,HTML5手指下滑弹出负一屏阻止移动端浏览器内置下拉刷新功能的实现代码...

    H5手指下滑弹出负一屏, 阻止移动端浏览器内置下拉刷新功能,具体实例代码如下所示: 默认隐藏,负一屏,手指下滑即可弹出显示,上滑隐藏 正式内容 import $ from 'jquery'; expo ...

  4. html5按钮自动特效,HTML5 svg和CSS3 22种炫酷鼠标点击按钮特效

    这是一组效果非常炫酷的HTML5 svg和CSS3鼠标点击按钮特效.这组鼠标点击特效共有22种效果,大多数是在伪元素上使用CSS3 animations来制作动画效果.非常适合于移动手机APP上的按钮 ...

  5. html5网页自动滚动,Html5 滚动穿透的方法

    问题背景: 网站需要在移动端完成适配,针对移动端H5以及web端采用的都是bluma这种flex布局解决方案 在H5中使用的列表采用的是 react-virtualized 来绘制表格 为了展示表格中 ...

  6. html5图像自动旋转,HTML5 旋转图像

    图像360度旋转: html代码: Document : 图像旋转 Created on : 2016-5-19, 10:53:15 Author : Administrator --%> JS ...

  7. html5网页自动下滑,html5 css3 让你的网页动起来

    源文来自:http://tgideas.qq.com/webplat/info/news_version3/804/808/811/m579/201212/184628.shtml 思路:初始属性设置 ...

  8. html5输入框自动放大镜,HTML5实现放大镜效果

    看到很多网上的移动鼠标位置能显示图片放大的效果,刚开始用OC语言实现了一下,后来发现用HTML中的JS交互效果实现更加完美,就随手用HBuilder写了一下简单的实现代码,具体效果图如下: 需要两张同 ...

  9. 视频教程-CSS3网页设计与制作(6-11):颜色特性/新型盒模型/边框/背景/渐变-HTML5/CSS

    CSS3网页设计与制作(6-11):颜色特性/新型盒模型/边框/背景/渐变 知识传播美丽,分享传递快乐.作者主要从事Java服务器端技术.前端与移动开发技术的研究和授课,已有10多年从业经验. IT老 ...

最新文章

  1. 完成CitrixVDI架构了解及部署测试
  2. WebWork深度探索之号外
  3. 构建之法读书笔记之五
  4. [转载] 变形金刚1
  5. Java 数字相关操作通用类 NumberUtils.java
  6. 向三姑六婶解释你在一线城市的工作
  7. raspberry pi_Raspberry Pi支持的杂耍性能
  8. Python基础-“百钱百鸡”入门逻辑题(刚开始的建议藏起来)
  9. 【Cocos2d-x游戏开发】解决Cocos2d-x中文乱码的三种方法
  10. 数据结构与算法 第二章习题课
  11. ie8兼容性视图灰色修复_win8系统设置IE8浏览器兼容性视图的方法
  12. PHP运行出现502是什么原因,php出现502错误怎么解决
  13. 【flash】 水果忍者
  14. 苹果发布“合二为一”芯片,华为公布“芯片叠加”的专利
  15. C语言实现连接MySQL服务器CURD
  16. 高中数学一轮复习逆袭必要学习方法
  17. 安卓手机管理器_安卓平台上功能最全面强大的文件管理器!
  18. 如何自己建网站,怎么创建自己的网站
  19. ImToken 钱包的研究
  20. 移动OA,为企业提供更高效的办公模式

热门文章

  1. 魅族更新Android10,魅族10款机型迎来Android 10更新,7月21日推送Flyme内测版
  2. 千万级WebSocket消息推送服务技术分析
  3. Unity3D Runtime Transform Gizmos运行时移动、旋转、缩放模型
  4. groupby 的妙用(注意size和count)
  5. typora修改快捷键-删除行
  6. 民用飞机着陆阶段着陆方法_8个出色的WordPress主题与可销售的着陆页
  7. html在电脑上转换字体怎么变了,电脑上如何音频转文字?
  8. 创新工厂汪华建言移动创业团队发展
  9. 用Python底层编写进行计量经济分析(四):自相关(原因、结果、检验:DW检验、补救:广义线性回归)
  10. 开心!(2019年8月5号)