亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

CSS3如何實現絢麗的動畫效果

發布時間:2022-02-25 16:52:55 來源:億速云 閱讀:163 作者:iii 欄目:web開發

這篇文章主要講解了“CSS3如何實現絢麗的動畫效果”,文中的講解內容簡單清晰,易于學習與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學習“CSS3如何實現絢麗的動畫效果”吧!

舉例:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

76

77

78

79

80

81

82

83

84

85

86

87

88

89

90

91

92

93

94

95

96

97

98

99

100

101

102

103

104

105

106

107

108

109

<!DOCTYPE HTML>

<html>

<head>  

    <title>一個絢麗的CSS3動畫效果</title>

    <style  type="text/css">

        body{background:#000;}

        h2

        {

            text-align:center;

            color:#fff;

            font-size:48px;

            text-shadow: 1px 1px 1px #ccc,

                       0 0 10px #fff,

                       0 0 20px #fff,

                       0 0 30px #fff,

                       0 0 40px #ff00de,

                       0 0 70px #ff00de,

                       0 0 80px #ff00de,

                       0 0 100px #ff00de,

                       0 0 150px #ff00de;

            transform-style: preserve-3d;

            -moz-transform-style: preserve-3d;

            -webkit-transform-style: preserve-3d; 

            -ms-transform-style: preserve-3d;            

            -o-transform-style: preserve-3d;             

            animation: run  ease-in-out 9s infinite;

            -moz-animation: run  ease-in-out 9s infinite ;

            -webkit-animation: run  ease-in-out 9s infinite;  

            -ms-animation: run  ease-in-out 9s infinite;  

            -o-animation: run  ease-in-out 9s infinite;

          }

        @keyframes run

        {

            0% {transform:rotateX(-5deg) rotateY(0);}

            50%

            {

                transform:rotateX(0) rotateY(180deg); 

                text-shadow: 1px  1px 1px #ccc,

                           0 0 10px #fff,

                           0 0 20px #fff,

                           0 0 30px #fff,

                           0 0 40px #3EFF3E,

                           0 0 70px #3EFFff,

                           0 0 80px #3EFFff,

                           0 0 100px #3EFFee,

                           0 0 150px #3EFFee;

            }

            100% {transform:rotateX(5deg) rotateY(360deg);}

        }

        @-webkit-keyframes run

        {

            0% {transform:rotateX(-5deg) rotateY(0);}

            50%

            {

                transform:rotateX(0) rotateY(180deg); 

                text-shadow: 1px  1px 1px #ccc,

                           0 0 10px #fff,

                           0 0 20px #fff,

                           0 0 30px #fff,

                           0 0 40px #3EFF3E,

                           0 0 70px #3EFFff,

                           0 0 80px #3EFFff,

                           0 0 100px #3EFFee,

                           0 0 150px #3EFFee;

            }

            100% {transform:rotateX(5deg) rotateY(360deg);}

        }

        @-moz-keyframes run

        {

            0% {transform:rotateX(-5deg) rotateY(0);}

            50%

            {

                transform:rotateX(0) rotateY(180deg); 

                text-shadow: 1px  1px 1px #ccc,

                           0 0 10px #fff,

                           0 0 20px #fff,

                           0 0 30px #fff,

                           0 0 40px #3EFF3E,

                           0 0 70px #3EFFff,

                           0 0 80px #3EFFff,

                           0 0 100px #3EFFee,

                           0 0 150px #3EFFee;

            }

            100% {transform:rotateX(5deg) rotateY(360deg);}

        }

        @-ms-keyframes run

        {

            0% {transform:rotateX(-5deg) rotateY(0);}

            50%

            {

                transform:rotateX(0) rotateY(180deg); 

                text-shadow: 1px  1px 1px #ccc,

                           0 0 10px #fff,

                           0 0 20px #fff,

                           0 0 30px #fff,

                           0 0 40px #3EFF3E,

                           0 0 70px #3EFFff,

                           0 0 80px #3EFFff,

                           0 0 100px #3EFFee,

                           0 0 150px #3EFFee;

            }

            100% {transform:rotateX(5deg) rotateY(360deg);}

        }

    </style>

</head>

<body>

    <h2>php中文網</h2>

</body>

</html>

效果如圖:

CSS3如何實現絢麗的動畫效果

分析:

看到這么牛逼的效果,相信小伙伴們都驚呆了吧!

這個例子綜合了CSS3的很多技術,使用到了CSS3中的文字陰影text-shadow、變形效果transform、過渡效果transition以及動畫效果animation等。

感謝各位的閱讀,以上就是“CSS3如何實現絢麗的動畫效果”的內容了,經過本文的學習后,相信大家對CSS3如何實現絢麗的動畫效果這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是億速云,小編將為大家推送更多相關知識點的文章,歡迎關注!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

布拖县| 鄂尔多斯市| 黑山县| 定襄县| 淅川县| 巩义市| 晋中市| 富平县| 鄢陵县| 星子县| 郁南县| 贵德县| 龙岩市| 叙永县| 特克斯县| 巴彦县| 盐亭县| 聂荣县| 五台县| 蒙城县| 嫩江县| 建阳市| 泽州县| 肥西县| 项城市| 启东市| 安国市| 祁连县| 湘阴县| 龙州县| 普兰县| 烟台市| 杭州市| 喀什市| 淄博市| 灵丘县| 东兴市| 丹阳市| 惠东县| 尖扎县| 吉安市|