CSS3 단일 페이지 전환 탐색 메뉴 인터페이스 디자인의 세부 구현
순수한 CSS3를 사용하여 만든 단일 페이지 전환 탐색 메뉴 인터페이스 디자인 효과입니다. 이 페이지 효과에서는 일련의 탐색 버튼이 페이지 왼쪽에 수직으로 배열되어 있습니다. 탐색 버튼을 클릭하면 해당 페이지가 화면 오른쪽에서 미끄러져 나옵니다.
이용방법
HTML 구조
단일 페이지 전환 탐색 메뉴 인터페이스의 HTML 구조는 다음과 같습니다.
<p class="ct" id="t1"> <p class="ct" id="t2"> <p class="ct" id="t3"> <p class="ct" id="t4"> <p class="ct" id="t5"> <ul id="menu"> <a href="#t1"><li class="icon fa fa-bolt" id="uno"></li></a> <a href="#t2"><li class="icon fa fa-keyboard-o" id="dos"></li></a> <a href="#t3"><li class="icon fa fa-rocket" id="tres"></li></a> <a href="#t4"><li class="icon fa fa-dribbble" id="cuatro"></li></a> <a href="#t5"><li class="icon fa fa-plus-circle" id="cinco"></li></a> </ul> <p class="page" id="p1"> <section class="icon fa fa-bolt"><span class="title">Bolt</span><span class="hint">...</section> </p> <p class="page" id="p2"> <section class="icon fa fa-keyboard-o"><span class="title">Type</span></section> </p> <p class="page" id="p3"> <section class="icon fa fa-rocket"><span class="title">Rocket</span></section> </p> <p class="page" id="p4"> <section class="icon fa fa-dribbble"> <span class="title">Dribbble</span> <p class="hint"> Im ready to play, <span class="hint line-trough">invite me </span> find me </p> <p class="hint">...</p> </section> </p> <p class="page" id="p5"> <section class="icon fa fa-plus-circle"> <span class="title">More</span> <p class="hint"> ... </p> </section> </p> </p> </p> </p> </p> </p>
CSS 스타일
단일 페이지 전환 탐색 메뉴 인터페이스는 변환 및 전환을 사용하여 페이지 전환 애니메이션 효과를 만듭니다. . 그리고 버튼 클릭 시 페이지 전환을 완료하려면 :target 의사 요소를 사용하세요. 전체 CSS 코드는 다음과 같습니다. 브라우저 제조업체의 접두사는 코드에 추가되지 않습니다.
html, body, .page { width: 100%; height: 100%; margin: 0; padding: 0; transition: all .6s cubic-bezier(.5, .2, .2, 1.1); color: #fff; overflow: hidden; } * { font-family: 'open sans', 'lato', 'helvetica', sans-serif; } .page { position: absolute; } #p1 { left: 0; } #p2, #p3, #p4, #p5 { left: 200%; } #p1 { background: darkslateblue; } #p2 { background: tomato; } #p3 { background: gold; } #p4 { background: deeppink; } #p5 { background: #9b59b6; } #t2:target #p2, #t3:target #p3, #t4:target #p4, #t5:target #p5 { transform: translateX(-190%); transition-delay: .4s !important; } #t2:target #p1, #t3:target #p1, #t4:target #p1, #t5:target #p1{ background: black; } #t2:target #p1 .icon, #t3:target #p1 .icon, #t4:target #p1 .icon, #t5:target #p1 .icon { -webkit-filter: blur(3px); filter: blur(3px); } .icon { color: #fff; font-size: 32px; display: block; } ul .icon:hover { opacity: 0.5; } .page .icon .title { line-height: 2; } #t2:target ul .icon, #t3:target ul .icon, #t4:target ul .icon, #t5:target ul .icon{ transform: scale(.6); transition-delay: .25s; } #t2:target #dos, #t3:target #tres, #t4:target #cuatro, #t4:target #cinco { transform: scale(1.2) !important; } ul { position: fixed; z-index: 1; top: 0; bottombottom: 0; left: 0; margin: auto; height: 280px; width: 10%; padding: 0; text-align: center; } #menu .icon { margin: 30px 0; transition: all .5s ease-out !important; } a { text-decoration: none; } .title, .hint { display: block; } .title { font-size: 38px; } .hint { font-size: 13px; } #p4 .hint { display: inherit !important; } .hint a { color: yellow; transition: all 250ms ease-out; } .hint a:hover { color: #FFF; } .line-trough { text-decoration: line-through; } .page .icon { position: absolute; top: 0; bottombottom: 0; rightright: 10%; left: 0; width: 270px; height: 170px; margin: auto; text-align: center; font-size: 80px; line-height: 1.3; transform: translateX(360%); transition: all .5s cubic-bezier(.25, 1, .5, 1.25); } .page#p1 .icon { height: 220px; } .page#p1 .icon { transform: translateX(10%) !important; } #t2:target .page#p2 .icon, #t3:target .page#p3 .icon, #t4:target .page#p4 .icon, #t5:target .page#p5 .icon { transform: translateX(0) !important; transition-delay: 1s; }
위의 순수 CSS3 단일 페이지 전환 탐색 메뉴 인터페이스 디자인의 간단한 구현은 편집자가 공유하는 모든 내용이기를 바랍니다. 참고로, 모든 분들이 PHP 중국어 웹사이트를 지지해주시기를 바랍니다.
CSS3 단일 페이지 전환 탐색 메뉴 인터페이스 디자인 및 관련 기사에 대한 자세한 구현을 보려면 PHP 중국어 웹사이트를 주목하세요!

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제











최근 Bitcoin의 가격이 20k 달러가 넘는 USD가 최근에 등반되면서 최근 30k를 끊었으므로 Ethereum을 만드는 데 깊이 다이빙을 할 가치가 있다고 생각했습니다.

개발자로서 어느 단계에 있든, 우리가 완료 한 작업은 크든 작든, 개인적이고 전문적인 성장에 큰 영향을 미칩니다.

그것은#039; VUE 팀에게 그것을 끝내는 것을 축하합니다. 나는 그것이 막대한 노력과 오랜 시간이라는 것을 알고 있습니다. 모든 새로운 문서도 있습니다.

나는 누군가이 매우 합법적 인 질문으로 글을 썼습니다. Lea는 브라우저에서 유효한 CSS 속성 자체를 얻는 방법에 대해 블로그를 작성했습니다. 이는 이와 같습니다.

다른 날, 나는 Corey Ginnivan의 웹 사이트에서 스크롤 할 때 카드 모음이 서로 쌓이는 것을 발견했습니다.

나는 다른 날에 Eric Meyer와 대화를 나누고 있었고 나는 내 형성 시절부터 Eric Meyer 이야기를 기억했습니다. CSS 특이성에 대한 블로그 게시물을 썼습니다
