中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

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

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

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

民丰县| 定州市| 揭阳市| 潮州市| 达拉特旗| 瑞丽市| 南靖县| 庆城县| 万载县| 绥江县| 密山市| 上饶市| 永川市| 宝兴县| 台中县| 盐山县| 青浦区| 嵊泗县| 扬中市| 枞阳县| 铁岭市| 辉南县| 吴江市| 桓仁| 自治县| 凤城市| 岳普湖县| 镇远县| 南昌市| 张北县| 普安县| 双鸭山市| 大城县| 建水县| 兖州市| 调兵山市| 竹溪县| 河北区| 望江县| 西林县| 秀山|