css3 animated navigation bar 3D
Source code network disk
The css3 small special effects navigation bar made based on MOOC.com, the icons are displayed in different ways
页面布局 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" type="text/css" href="css/style.css"/> </head> <body> <p class="nav"> <ul> <li> <a class="tooltip tooltip-effect-1" href="#">Home <span class="tooltip-content"> <i class="fa fa-fw fa-home"></i> </span> </a> </li> <li> <a class="tooltip tooltip-effect-2" href="#">About me <span class="tooltip-content"> <i class="fa fa-fw fa-user"></i> </span> </a> </li> <li> <a class="tooltip tooltip-effect-3" href="#">Photography <span class="tooltip-content"> <i class="fa fa-fw fa-camera-retro"></i> </span> </a> </li> <li> <a class="tooltip tooltip-effect-4" href="#">Work <span class="tooltip-content"> <i class="fa fa-fw fa-briefcase"></i> </span> </a> </li> <li> <a class="tooltip tooltip-effect-5" href="#">Contact <span class="tooltip-content"> <i class="fa fa-fw fa-envelope"></i> </span> </a> </li> </ul> </p> </body> </html>
样式 *{ -webkit-box-sizing: border-box; } html,body { margin: 0; padding: 0; height: 100%; background: #47c9af;; color: #74777b; font-family: 'Raleway', Arial, sans-serif; } ul { list-style: none; } a{ text-decoration: none; color: rgba(0, 0, 0, 0.3); display: inline-block; font-weight: 700; } a:hover, .nav a:focus { color: #fff; } .nav { width: 820px; height: 300px; margin: 200px auto 0 auto; font-weight: 300; } .nav ul li { display: inline-block; position: relative; margin: 0 20px; font-size: 1.5em; } .tooltip-content { position: absolute; width: 80px; height: 80px; padding-top: 25px; left: 50%; margin-left: -40px; bottom: 20px; border-radius: 50%; text-align: center; background: #fff; color: #47c9af; opacity: 0; margin-bottom: 20px; cursor: pointer; } .tooltip-effect-1 .tooltip-content { -webkit-transform: translate3d(0, 10px, 0) rotate3d(1, 1, 1, 45deg); -webkit-transform-origin: 50% 100%; -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip-effect-1 .tooltip-content i { -webkit-transform: scale3d(0, 0, 1); -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip-effect-2 .tooltip-content { -webkit-transform: translate3d(0, 10px, 0); -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip-effect-2 .tooltip-content i { -webkit-transform: translate3d(0, 15px, 0); -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip-effect-3 .tooltip-content { -webkit-transform: translate3d(0, 10px, 0) rotate3d(0, 1, 0, 90deg); -webkit-transform-origin: 50% 100%; -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip-effect-3 .tooltip-content i { -webkit-transform: scale3d(0, 0, 1); -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip-effect-4 .tooltip-content { -webkit-transform: translate3d(0, -20px, 0); -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip-effect-4 .tooltip-content i { -webkit-transform: translate3d(0, 20px, 0); -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip-effect-5 .tooltip-content { -webkit-transform: scale3d(0, 0, 1); -webkit-transform-origin: 50% 100%; -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip-effect-5 .tooltip-content i { -webkit-transform: translate3d(0, 20px, 0); -webkit-transition: opacity 0.3s, -webkit-transform 0.3s; } .tooltip:hover .tooltip-content, .tooltip:hover .tooltip-content i { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1); }
This article explains the css3 animation Navigation bar 3D, please pay attention to php Chinese website for more related content.
Related recommendations:
The front-end calls the WeChat payment interface
jQuery plug-in development standard writing method
The above is the detailed content of css3 animated navigation bar 3D. For more information, please follow other related articles on the PHP Chinese website!

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











How to achieve wave effect with pure CSS3? This article will introduce to you how to use SVG and CSS animation to create wave effects. I hope it will be helpful to you!

This article will show you how to use CSS to easily realize various weird-shaped buttons that appear frequently. I hope it will be helpful to you!

Two methods: 1. Using the display attribute, just add the "display:none;" style to the element. 2. Use the position and top attributes to set the absolute positioning of the element to hide the element. Just add the "position:absolute;top:-9999px;" style to the element.

How to create text carousel and image carousel? The first thing everyone thinks of is whether to use js. In fact, text carousel and image carousel can also be realized using pure CSS. Let’s take a look at the implementation method. I hope it will be helpful to everyone!

In CSS, you can use the border-image attribute to achieve a lace border. The border-image attribute can use images to create borders, that is, add a background image to the border. You only need to specify the background image as a lace style; the syntax "border-image: url (image path) offsets the image border width inward. Whether outset is repeated;".

Implementation method: 1. Use the ":active" selector to select the state of the mouse click on the picture; 2. Use the transform attribute and scale() function to achieve the picture magnification effect, the syntax "img:active {transform: scale(x-axis magnification, y Axis magnification);}".

In CSS3, you can use the "animation-timing-function" attribute to set the animation rotation speed. This attribute is used to specify how the animation will complete a cycle and set the speed curve of the animation. The syntax is "element {animation-timing-function: speed attribute value;}".

CSS3 linear gradient can realize triangles; just create a 45-degree linear gradient and set the gradient color to two fixed colors, one is the color of the triangle and the other is transparent color. The syntax "linear-gradient(45deg, color value , color value 50%, transparent color 50%, transparent color 100%)".
