찾다
웹 프론트엔드CSS 튜토리얼CSS3 삼각형을 지속적으로 확대하는 방법

이 글에서는 CSS3 삼각형을 지속적으로 확대하는 방법을 소개합니다. 도움이 필요한 친구들이 모두 참고할 수 있기를 바랍니다.

CSS3 삼각형을 지속적으로 확대하는 방법

CSS3 삼각형 연속 확대 효과

사진 미리보기

CSS3 삼각형을 지속적으로 확대하는 방법

index.html code

<!DOCTYPE html><html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>CSS3三角形不断放大特效</title>
		<link rel="stylesheet" href="css/style.css">
	</head>
	<body>
		<p class="wrapper">
			<svg class="triangle-canvas" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg">
				<polygon class="triangle triangle-1" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-2" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-3" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-4" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-5" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-6" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-7" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-8" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-9" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-10" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-11" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-12" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-13" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-14" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-15" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-16" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-17" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-18" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-19" points="500,200 759,650 241,650" />
				<polygon class="triangle triangle-20" points="500,200 759,650 241,650" />
			</svg>
		</p>
	</body></html>

style.css code

html {
	height: 100%;}body {
	padding: 0;
	margin: 0;
	height: 100%;
	background: #642B73;
	/* fallback for old browsers */
	/* Chrome 10-25, Safari 5.1-6 */
	background: linear-gradient(to left, #C6426E, #642B73);
	/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */}.wrapper {
	overflow: hidden;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;}.triangle-canvas {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100%;
	height: 100%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);}.triangle {
	fill: none;
	stroke: #fff;
	stroke-width: 15;
	-webkit-transform-origin: center center;
	transform-origin: center center;
	-webkit-animation: triangle-animation 10s linear infinite;
	animation: triangle-animation 10s linear infinite;}.triangle-1 {
	-webkit-animation-delay: 0s;
	animation-delay: 0s;}.triangle-2 {
	-webkit-animation-delay: -0.5s;
	animation-delay: -0.5s;}.triangle-3 {
	-webkit-animation-delay: -1s;
	animation-delay: -1s;}.triangle-4 {
	-webkit-animation-delay: -1.5s;
	animation-delay: -1.5s;}.triangle-5 {
	-webkit-animation-delay: -2s;
	animation-delay: -2s;}.triangle-6 {
	-webkit-animation-delay: -2.5s;
	animation-delay: -2.5s;}.triangle-7 {
	-webkit-animation-delay: -3s;
	animation-delay: -3s;}.triangle-8 {
	-webkit-animation-delay: -3.5s;
	animation-delay: -3.5s;}.triangle-9 {
	-webkit-animation-delay: -4s;
	animation-delay: -4s;}.triangle-10 {
	-webkit-animation-delay: -4.5s;
	animation-delay: -4.5s;}.triangle-11 {
	-webkit-animation-delay: -5s;
	animation-delay: -5s;}.triangle-12 {
	-webkit-animation-delay: -5.5s;
	animation-delay: -5.5s;}.triangle-13 {
	-webkit-animation-delay: -6s;
	animation-delay: -6s;}.triangle-14 {
	-webkit-animation-delay: -6.5s;
	animation-delay: -6.5s;}.triangle-15 {
	-webkit-animation-delay: -7s;
	animation-delay: -7s;}.triangle-16 {
	-webkit-animation-delay: -7.5s;
	animation-delay: -7.5s;}.triangle-17 {
	-webkit-animation-delay: -8s;
	animation-delay: -8s;}.triangle-18 {
	-webkit-animation-delay: -8.5s;
	animation-delay: -8.5s;}.triangle-19 {
	-webkit-animation-delay: -9s;
	animation-delay: -9s;}.triangle-20 {
	-webkit-animation-delay: -9.5s;
	animation-delay: -9.5s;}@-webkit-keyframes triangle-animation {
	0% {
		-webkit-transform: scale(0) rotate(0deg);
		transform: scale(0) rotate(0deg);
		opacity: 1;
	}

	100% {
		-webkit-transform: scale(3) rotate(45deg);
		transform: scale(3) rotate(45deg);
		opacity: 0;
	}}@keyframes triangle-animation {
	0% {
		-webkit-transform: scale(0) rotate(0deg);
		transform: scale(0) rotate(0deg);
		opacity: 1;
	}

	100% {
		-webkit-transform: scale(3) rotate(45deg);
		transform: scale(3) rotate(45deg);
		opacity: 0;
	}}

추천 학습: css 비디오 튜토리얼

위 내용은 CSS3 삼각형을 지속적으로 확대하는 방법의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

성명
이 기사는 CSDN에서 복제됩니다. 침해가 있는 경우 admin@php.cn으로 문의하시기 바랍니다. 삭제
스타일링은 실제 밑줄과의 링크입니다스타일링은 실제 밑줄과의 링크입니다Apr 17, 2025 am 10:57 AM

스타일의 밑줄에 오기 전에 질문에 대답해야합니다.

주간 플랫폼 뉴스 : HTML로드 속성, 주요 ARIA 사양 및 iframe에서 Shadow Dom으로 이동주간 플랫폼 뉴스 : HTML로드 속성, 주요 ARIA 사양 및 iframe에서 Shadow Dom으로 이동Apr 17, 2025 am 10:55 AM

이번 주에 플랫폼 뉴스 라운드 업 RONDUP, Chrome은로드에 대한 새로운 속성, 웹 개발자를위한 접근성 사양 및 BBC Move를 소개합니다.

GraphQL이있는 멀티 플레이어 TIC TAC 발가락GraphQL이있는 멀티 플레이어 TIC TAC 발가락Apr 17, 2025 am 10:54 AM

GraphQL은 프론트 엔드 개발자에게 매우 힘을 실어주는 API의 쿼리 언어입니다. GraphQL 사이트에서 설명 하듯이 데이터를 설명하고 무엇을 요청하십시오.

CSS 변수를 사용한 논리적 작업CSS 변수를 사용한 논리적 작업Apr 17, 2025 am 10:44 AM

종종 스위치 변수를 사용하는 동안 (0 또는 1의 변수,이 게시물에서 더 자세히 설명한 개념).

게으른 부하 내장 YouTube 비디오게으른 부하 내장 YouTube 비디오Apr 17, 2025 am 10:40 AM

이것은 Arthur Corenzan을 통한 매우 영리한 아이디어입니다. 기본 YouTube Embed를 사용하는 대신 사용자가 플레이하는지 여부에 관계없이 페이지에 리소스를 추가합니다.

CSS에서 커서를 회전 할 수 있습니까?CSS에서 커서를 회전 할 수 있습니까?Apr 17, 2025 am 10:28 AM

좀! 간단하거나 표준적인 방법은 없지만 가능합니다. CSS를 사용하여 커서를 다른 내장 기본 버전으로 변경할 수 있습니다.

반응 후크 및 스타일의 구성 요소 측면이있는 햄버거 메뉴반응 후크 및 스타일의 구성 요소 측면이있는 햄버거 메뉴Apr 17, 2025 am 10:21 AM

우리 모두 햄버거 메뉴가 무엇인지 알고 있습니까? 패턴이 웹 디자인에 들어가기 시작했을 때, 그것은 미니멀리즘에 대해 조롱하고 박수를 보냈습니다.

유리 (및 고급) 텍스트 효과유리 (및 고급) 텍스트 효과Apr 17, 2025 am 10:19 AM

Apple Arcade의 방문 페이지에는 일부 "흰색"텍스트가 일종의 반투명 효과가있는 멋진 효과가 있습니다. 배경의 색상을 볼 수 있습니다.

See all articles

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

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

AI Clothes Remover

AI Clothes Remover

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

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

AI Hentai Generator

AI Hentai Generator

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

인기 기사

R.E.P.O. 에너지 결정과 그들이하는 일 (노란색 크리스탈)
1 몇 달 전By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 최고의 그래픽 설정
1 몇 달 전By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 아무도들을 수없는 경우 오디오를 수정하는 방법
1 몇 달 전By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 채팅 명령 및 사용 방법
1 몇 달 전By尊渡假赌尊渡假赌尊渡假赌

뜨거운 도구

WebStorm Mac 버전

WebStorm Mac 버전

유용한 JavaScript 개발 도구

메모장++7.3.1

메모장++7.3.1

사용하기 쉬운 무료 코드 편집기

에디트플러스 중국어 크랙 버전

에디트플러스 중국어 크랙 버전

작은 크기, 구문 강조, 코드 프롬프트 기능을 지원하지 않음

SublimeText3 중국어 버전

SublimeText3 중국어 버전

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

VSCode Windows 64비트 다운로드

VSCode Windows 64비트 다운로드

Microsoft에서 출시한 강력한 무료 IDE 편집기