Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use pure CSS3 to achieve tab tab special effects

2025-02-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to use pure CSS3 to achieve tab tab special effects" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "how to use pure CSS3 to achieve tab tab special effects" article can help you solve the problem.

Html Code:

The code is as follows:

Night Tabs

Typography

Grid Systen

License

Night Tabs

Night Tabs (formerly TrueTabs) is an extensive CSS3

Tabbed Content snippet. It started out small as a typical CSS Tabs snippet, but

I have expanded it greatly. It offers many features, and can be easily modified

To fit your needs. Some of the features include: Cross browser support, preset animations

Colors, and layouts, a responsive grid system, and a typography set, among other

Things.

Custom Fonts

Open Sans Light

FontAwesome

Paragraphs and Quotes

Maecenas tincidunt nunc est, nec pharetra odio porta ac. Morbi cursus lacinia neque

Tristique tincidunt ipsum tincidunt a.

Maecenas tincidunt nunc est, nec pharetra odio porta ac. Morbi cursus lacinia neque

Tristique tincidunt ipsum tincidunt a.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec malesuada rutrum

Felis, quis imperdiet nisl finibus id. Etiam commodo vitae purus a lobortis. Donec

Lacinia dapibus metus nec feugiat. Integer blandit tellus vel dapibus efficitur.

Nulla placerat sollicitudin laoreet. Maecenas fermentum eros diam, at blandit lectus

Volutpat ac.Proin ornare mauris dui, semper condimentum urna blandit non. Vestibulum

Ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut

Scelerisque justo sit amet sem commodo, ac porta arcu auctor.

Unordered Lists

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Nulla vitae lacus sed dui fringilla elementum eu id eros.

Vivamus euismod mauris sit amet iaculis porttitor.

Donec condimentum massa non elit lobortis, a ultrices ante vulputate.

Nulla vitae lacus sed dui fringilla elementum eu id eros.

Vivamus euismod mauris sit amet iaculis porttitor.

Donec condimentum massa non elit lobortis, a ultrices ante vulputate.

Ordered Lists

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Nulla vitae lacus sed dui fringilla elementum eu id eros.

Vivamus euismod mauris sit amet iaculis porttitor.

Donec condimentum massa non elit lobortis, a ultrices ante vulputate.

Nulla vitae lacus sed dui fringilla elementum eu id eros.

Vivamus euismod mauris sit amet iaculis porttitor.

Donec condimentum massa non elit lobortis, a ultrices ante vulputate.

Typography Set

HTML5

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ante nisl, condimentum

Nec dolor viverra, dignissim convallis est. In commodo rhoncus augue, an euismod

Felis placerat ut. Ut ullamcorper libero tortor, ut semper lectus congue ut. Morbi

Pulvinar, nisi at pharetra scelerisque, nibh magna ornare augue, vel aliquet ipsum

Ante eu sem. Maecenas id est risus. Nulla facilisis dui molestie euismod mollis.

Duis vehicula elementum justo in porta. Maecenas erat lectus, finibus vel lectus

Non, consequat ultricies dolor. Nunc ultricies quam in purus facilisis, porttitor

Blandit odio volutpat. Sed sed posuere lectus, sit amet rutrum est. Duis porttitor

Purus blandit, lacinia nibh quis, ultricies augue.

CSS3

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ante nisl, condimentum

Nec dolor viverra, dignissim convallis est. In commodo rhoncus augue, an euismod

Felis placerat ut. Ut ullamcorper libero tortor, ut semper lectus congue ut. Morbi

Pulvinar, nisi at pharetra scelerisque, nibh magna ornare augue, vel aliquet ipsum

Ante eu sem. Maecenas id est risus. Nulla facilisis dui molestie euismod mollis.

Duis vehicula elementum justo in porta. Maecenas erat lectus, finibus vel lectus

Non, consequat ultricies dolor. Nunc ultricies quam in purus facilisis, porttitor

Blandit odio volutpat. Sed sed posuere lectus, sit amet rutrum est. Duis porttitor

Purus blandit, lacinia nibh quis, ultricies augue.

NO JavaScript

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam ante nisl, condimentum

Nec dolor viverra, dignissim convallis est. In commodo rhoncus augue, an euismod

Felis placerat ut. Ut ullamcorper libero tortor, ut semper lectus congue ut. Morbi

Pulvinar, nisi at pharetra scelerisque, nibh magna ornare augue, vel aliquet ipsum

Ante eu sem. Maecenas id est risus. Nulla facilisis dui molestie euismod mollis.

Duis vehicula elementum justo in porta. Maecenas erat lectus, finibus vel lectus

Non, consequat ultricies dolor. Nunc ultricies quam in purus facilisis, porttitor

Blandit odio volutpat. Sed sed posuere lectus, sit amet rutrum est. Duis porttitor

Purus blandit, lacinia nibh quis, ultricies augue.

Night Tabs-CSS3 Tabbed Content

Night Tabs-v0.2.0

Coded by Jason Shi under the MIT License.

Css3 Code:

Copy the code

The code is as follows:

/ *-

# RESET

/ *-

. night-tabs a

. night-tabs div

. night-tabs em

. night-tabs img

. night-tabs ul

. night-tabs label

. night-tabs li

. night-tabs ol

. night-tabs p

. night-tabs span

. night-tabs ul {

/ *-> Structure Typography CSS3 Prevents double-click selection. > Spacing for content. Intensity of tab effects. .content2: checked~ul > .content2

.night-tabs > .content3: checked~ul > .content3

.night-tabs > .content4: checked~ul > .content4 {

/ * Structure * /

Opacity: 1

Visibility: visible

/ * CSS3 * /

-webkit-transform: none

-ms-transform: none

Transform: none

}

/ *-

# SLIDE EFFECTS

/ *-

/ *-> > Slide Up > Slide Down > Slide Left > Slide Right > Slide Up + Left > Slide Up + Right > Slide Down + Left > Slide Down + Right > Rotate ul > li

Night-tabs-animation-rotate.night-tabs.night-tabs-position-vright > ul > li {

-o-transform: rotate (- 10deg)

-ms-transform: rotate (- 10deg)

-moz-transform: rotate (- 10deg)

-webkit-transform: rotate (- 10deg)

}

/ *-> Scale > > Flip li {

-webkit-transform: rotateY (90deg)

Transform: rotateY (90deg)

}

Night-tabs-animation-flip.night-tabs-position-vright > .night-tabs-content > li {

-webkit-transform: rotateY (- 90deg)

Transform: rotateY (- 90deg)

}

/ * *

* CONTENTS-layouts.css

*

* HORIZONTAL POSITIONS

* Basic horizontal positions: top, left, right, and justify.

*

* VERTICAL POSITIONS

* Basic vertical positions, vertical left and vertical right.

*

, /

/ *-

# HORIZONTAL POSITIONS

/ *-

/ *-> > Left, Center, Right Justified label {width: 33.33}

.night-tabs-position-justify4 > label {width: 25%}

/ *-

# VERTICAL POSITIONS

/ *-

/ *-> General Styles label

.night-tabs-position-vright > label {

Clear: left

Display: block

Float: left

Margin-right: 0

Width: 25%

}

/ *-> > Vertical Left > Vertical Right li {

-webkit-transform-origin: 100% 0%

-ms-transform-origin: 100% 0%

Transform-origin: 100% 0%

}

/ * *

* CONTENTS-typography.css

*

* BASIC TYPOGRAPHY

* Styles for headings,paragraphs, and links.

*

* EXTENDED TYPOGRAPHY

* Styling for images, unordered and ordered lists, and utility classes.

*

* GRID SYSTEM

* Basic 12 fluid column grid system with offset support.

*

, /

/ *-

# BASIC TYPOGRAPHY

/ *-

/ *-> > Headings Paragraphs Links FontAwesome Images Lists Utility Micro-Clearfix Basic Structure Grid System Config Default (Gray/Grey) Blue Red Green Purple Orange Yellow Pink Brown Teal Turquoise. Night-tabs-content > li {

-webkit-transform-origin: 50% 0%

-ms-transform-origin: 50% 0%

Transform-origin: 50% 0%

}

Night-tabs.night-tabs-animation-flip > ul > li {

-webkit-transform: rotateX (- 90deg)

Transform: rotateX (- 90deg)

}

}

Body {

Background: # 111

Margin-top: 2em

}

This is the end of the introduction to "how to implement tab tab special effects in pure CSS3". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report