简要教程
这是一组效果非常炫酷的垂直分页导航按钮动画特效。这组特效通用18种效果,可以用于制作幻灯片、页面切换和其它容器组件切换的分页导航按钮。
使用方法
HTML结构
下面是这组垂直分页导航按钮动画特效中的其中一种效果的GIF动态演示图:
生成上面的垂直分页导航效果的HTML结构如下:
<nav class="nav nav--timiro"> <button class="nav__item" aria-label="Item 1"></button> <button class="nav__item nav__item--current" aria-label="Item 2"></button> <button class="nav__item" aria-label="Item 3"></button> <button class="nav__item" aria-label="Item 4"></button> <button class="nav__item" aria-label="Item 5"></button> <button class="nav__item" aria-label="Item 6"></button> <button class="nav__item" aria-label="Item 7"></button> <button class="nav__item" aria-label="Item 8"></button> </nav>
CSS样式
.nav { position: relative; width: 8em; margin: 0 0 0 3em; } .nav__item { line-height: 1; position: relative; display: block; margin: 0; padding: 0; letter-spacing: 0; color: currentColor; border: 0; background: none; } .nav__item:focus { outline: none; }
然后万维zahi效果设置特有的CSS样式:
/*** Zahi ***/ .nav--zahi .nav__item { width: 2em; height: 2em; } .nav--zahi .nav__item::before, .nav--zahi .nav__item::after { content: ''; position: absolute; } .nav--zahi .nav__item:not(:last-child)::before { top: calc(2em - 9px); left: 5px; width: 2px; height: calc(2em - 12px); background: #98322a; } .nav--zahi .nav__item::after { top: 50%; left: 0; width: 12px; height: 12px; margin: -5px 0 0 0; border: 2px solid #98322a; border-radius: 50%; background: #f44336; -webkit-transition: -webkit-transform 0.3s, border-color 0.3s, border-width 0.3s, background 0.3s; transition: transform 0.3s, border-color 0.3s, border-width 0.3s, background 0.3s; } .nav--zahi .nav__item--current::after { border-width: 1px; border-color: #fff; -webkit-transform: scale3d(1.6,1.6,1); transform: scale3d(1.6,1.6,1); } .nav--zahi .nav__item:not(.nav__item--current):focus::after, .nav--zahi .nav__item:not(.nav__item--current):hover::after { border-color: #fff; background: #fff; } .nav--zahi .nav__item-title { font-family: 'Roboto Condensed', sans-serif; line-height: 1.5; display: block; position: relative; padding: 0 0 0 2.5em; white-space: nowrap; opacity: 0.3; color: #98322a; -webkit-transition: opacity 0.3s, color 0.3s; transition: opacity 0.3s, color 0.3s; } .nav--zahi .nav__item:not(.nav__item--current):focus .nav__item-title, .nav--zahi .nav__item:not(.nav__item--current):hover .nav__item-title { opacity: 0.5; } .nav--zahi .nav__item--current .nav__item-title { opacity: 1; color: #fff;
其它效果的制作请参考下载文件。
以上就是18种垂直分页导航按钮动画特效的内容,更多相关内容请关注PHP中文网(www.php.cn)!

I got this question the other day. My first thought is: weird question! Specificity is about selectors, and at-rules are not selectors, so... irrelevant?

Yes, you can, and it doesn't really matter in what order. A CSS preprocessor is not required. It works in regular CSS.

You should for sure be setting far-out cache headers on your assets like CSS and JavaScript (and images and fonts and whatever else). That tells the browser

Many developers write about how to maintain a CSS codebase, yet not a lot of them write about how they measure the quality of that codebase. Sure, we have

Have you ever had a form that needed to accept a short, arbitrary bit of text? Like a name or whatever. That's exactly what is for. There are lots of

I'm so excited to be heading to Zürich, Switzerland for Front Conference (Love that name and URL!). I've never been to Switzerland before, so I'm excited

One of my favorite developments in software development has been the advent of serverless. As a developer who has a tendency to get bogged down in the details

In this post, we’ll be using an ecommerce store demo I built and deployed to Netlify to show how we can make dynamic routes for incoming data. It’s a fairly


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor