91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

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

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

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

博兴县| 临潭县| 湖南省| 小金县| 道真| 蛟河市| 遵义市| 巴林左旗| 濉溪县| 遂宁市| 桂林市| 鹤峰县| 长兴县| 静安区| 陈巴尔虎旗| 永和县| 宝鸡市| 德兴市| 土默特左旗| 昌图县| 凌云县| 广宁县| 光泽县| 博野县| 嵊泗县| 内黄县| 麦盖提县| 涡阳县| 赤壁市| 拉孜县| 临西县| 望江县| 镇江市| 喀喇沁旗| 沙洋县| 普宁市| 肥城市| 平武县| 湖北省| 镇江市| 镇原县|