CSS

语言:

CSSSCSS

确定

*,

*:before,

*:after {

box-sizing: border-box;

}

body {

background: indianred;

color: white;

font-family: 'Source Sans Pro';

overflow-x: hidden;

}

ul {

margin: 0;

padding: 0;

list-style-type: none;

}

.tiles {

position: fixed;

z-index: 5;

bottom: 0;

display: flex;

width: 100%;

}

.tiles__tile {

flex: 1;

padding: 20px;

transition: all 0.25s ease-out;

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

cursor: pointer;

}

.tiles__tile.active:nth-child(1) {

background: tomato;

}

.tiles__tile.active:nth-child(2) {

background: deepskyblue;

}

.tiles__tile.active:nth-child(3) {

background: lightseagreen;

}

.tiles__tile.active:nth-child(4) {

background: crimson;

}

.tiles__tile:hover:nth-child(1) {

background: tomato;

}

.tiles__tile:hover:nth-child(2) {

background: deepskyblue;

}

.tiles__tile:hover:nth-child(3) {

background: lightseagreen;

}

.tiles__tile:hover:nth-child(4) {

background: crimson;

}

.content {

z-index: 10;

height: 100vh;

position: fixed;

top: 0;

}

.content__item {

position: absolute;

top: 0;

left: 0;

width: 100vw;

height: 100vh;

z-index: 10;

display: flex;

align-items: center;

padding: 12vw;

visibility: hidden;

transition: all 0.25s ease-out;

}

.content__item.active {

visibility: visible;

}

.content__item.active:before {

transform: scale(1);

}

.content__item.active .content-wrap {

transform: scale(1);

opacity: 1;

}

.content__item .content-wrap {

transform: scale(0.7);

opacity: 0;

transition: all 0.8s 0.6s cubic-bezier(0.23, 1, 0.32, 1);

}

.content__item:before {

content: "";

position: absolute;

top: 0;

left: 0;

width: 100vw;

height: 100vh;

background: tomato;

transform-origin: center bottom;

transform: scale(0);

z-index: -1;

transition: all 0.65s cubic-bezier(0.23, 1, 0.32, 1);

}

.content__item:nth-child(1):before {

transform-origin: 0% 100%;

background: tomato;

}

.content__item:nth-child(2):before {

transform-origin: 33% 100%;

background: deepskyblue;

}

.content__item:nth-child(3):before {

transform-origin: 66% 100%;

background: lightseagreen;

}

.content__item:nth-child(4):before {

transform-origin: 100% 100%;

background: crimson;

/* --------------- */

}

.stuff {

margin: 6vw;

max-width: 768px;

}

h2 {

font-weight: 300;

}

h3 {

font-size: 48px;

}

p {

font-weight: 300;

font-size: 24px;

}

HTML图片瓦片,HTML5 可扩展瓦片式导航栏相关推荐

  1. 怎么在html5中制作下拉导航栏,在PPT中制作下拉式导航菜单效果的方法

    为了提高PPT演示文稿的观赏性,用户可能希望在PPT幻灯片中添加下拉式导航菜单效果,通过该导航菜单在不同幻灯片间进行导航(如图1所示),制作下拉式导航菜单的具体操作步骤如下. 图1 下拉式导航菜单 ( ...

  2. 微信小程序——沉浸式导航栏实现(含iphoneX适配和组件封装)

    文章目录 前言 正文 JSON navBar.js navBar.wxml navBar.wxss test1.wxml 展示效果 总结 前言 微信小程序中导航栏一般来说是默认的展示标题等等,可以做的 ...

  3. BootStrap-CSS样式_布局组件_响应式导航栏(移动设备折叠随宽度增加展开)

    导航栏 导航栏是一个很好的功能,是 Bootstrap 网站的一个突出特点.导航栏在您的应用或网站中作为导航页头的响应式基础组件.导航栏在移动设备的视图中是折叠的,随着可用视图宽度的增加,导航栏也会水 ...

  4. html响应式导航栏制作,用Sass制作响应式导航栏(原创)

    插件描述:用Sass制作响应式导航栏 更新时间:2017/12/29 下午8:33:04 更新说明:细节优化data-stop='true' : 在手机版上禁止跳转页面// 插入js代码 $(docu ...

  5. Android肝帝战纪之基于上篇单Activity+多Fragment框架,开发电商式导航栏,多Fragment切换

    电商式导航栏,多Fragment切换 本文默认在已经搭建好的框架上进行开发 点此链接到上一篇基础框架的搭建 界面构思示意图 设计思路 在底部的LinearLayout中添加相应的图标,然后设置tag绑 ...

  6. uniapp设置导航栏、沉浸式导航栏以及获取屏幕尺寸

    页面上往往会有一些需要随着屏幕的大小变化而变化的样式,这时,我们就需要获取到屏幕的宽度和高度. 当然,一个H5页面或者微信小程序页面的导航栏会有多种形态,可以带有导航栏,也可以设置为沉浸式导航栏(即导 ...

  7. uni-app实现小程序沉浸式导航栏/顶部组件占满导航栏

    uni-app实现小程序沉浸式导航栏/顶部组件占满导航栏 如果你只是想单纯的让屏幕最上方的那个组件(比如swiper)将通知栏(导航栏)填充满,那么你只需要在page.json文件中加入以下代码到你想 ...

  8. 微信小程序——沉浸式导航栏实现

    微信小程序--沉浸式导航栏实现 微信小程序中导航栏一般来说是默认的展示标题等等,可以做的样式改变仅仅能通过配置一些官方提供的属性来实现.除此之外小程序还提供了navigationStyle这个属性可以 ...

  9. android 4.4 以上沉浸式状态栏和沉浸式导航栏管理,一句代码轻松实现

    ImmersionBar 项目地址:gyf-dev/ImmersionBar  简介:android 4.4 以上沉浸式状态栏和沉浸式导航栏管理,一句代码轻松实现,以及对 bar 的其他设置,详见 R ...

最新文章

  1. golang 拷贝文件 简介
  2. 5 随窗口改变大小_C4D默认界面两个关于坐标轴的窗口有什么区别
  3. Tomcat详解(三)——tomcat多实例
  4. linux数组操作 增删改查,JS实现数组的增删改查操作示例
  5. m6000查看端口状态_M6000日常查看维护命令.doc
  6. NVIDIA显卡驱动报错
  7. 自动注册11平台账号
  8. “互联网+政务”是什么?
  9. android开发流程
  10. Disentangling and Unifying Graph Convolutions for Skeleton-Based Action Recognition
  11. 最简单的改变字体大小代码
  12. ubuntu 16.04怎么更改文件夹里面所有子文件权限
  13. ORACLE-使用DBCA创建数据库
  14. python的numpy教程_ROS与Python入门教程-使用numpy
  15. 电话聊天狂人(25 分)
  16. 重大喜讯!精灵云校V5.0家校互通正式上线,助力机构打造完美服务体系!
  17. [转]学习SQL语句之SQL语句大全
  18. 31省份推出40万亿投资蓝图 新基建、公共卫生成亮点
  19. Algorithms - Lecture 12 - Randomized Algorithms
  20. avue中地图使用实现地图的联动_7.1地图组件

热门文章

  1. PAT1066 Root of AVL Tree (25)(AVL树)
  2. s3c2440地址分配
  3. ssh端口映射,本地转发
  4. 纹理mag filter不能取GL_XXX_MIPMAP_XXXX
  5. uploadify控制 上传图片到百度云存储
  6. [转载] 中华典故故事(孙刚)——02 半路杀出个程咬金
  7. 邮件服务器收发邮件时常发生的问题
  8. 用VLC读取摄像头产生RTSP流,DSS主动取流转发(一)
  9. 安装setuptools与pip
  10. SphereFace的原理