출처1 : https://codepen.io/beben-koben/pen/gfuvc





<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="utf-8" />
    <title></title>
    <style>
        /*This is coded CSS rainbow*/
        a:hover {
            -webkit-animation: rainbow 1s infinite;
            -ms-animation: rainbow 1s infinite;
            -o-animation: rainbow 1s infinite;
            animation: rainbow 1s infinite;
        }
        @-webkit-keyframes rainbow {
            0% {color#ff0000;}
            10% {color#ff8000;}
            20% {color#ffff00;}
            30% {color#80ff00;}
            40% {color#00ff00;}
            50% {color#00ff80;}
            60% {color#00ffff;}
            70% {color#0080ff;}
            80% {color#0000ff;}
            90% {color#8000ff;}
            100% {color#ff0080;}
        }
        @-ms-keyframes rainbow {
            0% {color#ff0000;}
            10% {color#ff8000;}
            20% {color#ffff00;}
            30% {color#80ff00;}
            40% {color#00ff00;}
            50% {color#00ff80;}
            60% {color#00ffff;}
            70% {color#0080ff;}
            80% {color#0000ff;}
            90% {color#8000ff;}
            100% {color#ff0080;}
        }
        @-o-keyframes rainbow {
            0% {color#ff0000;}
            10% {color#ff8000;}
            20% {color#ffff00;}
            30% {color#80ff00;}
            40% {color#00ff00;}
            50% {color#00ff80;}
            60% {color#00ffff;}
            70% {color#0080ff;}
            80% {color#0000ff;}
            90% {color#8000ff;}
            100% {color#ff0080;}
        }
        @keyframes rainbow {
            0% {color#ff0000;}
            10% {color#ff8000;}
            20% {color#ffff00;}
            30% {color#80ff00;}
            40% {color#00ff00;}
            50% {color#00ff80;}
            60% {color#00ffff;}
            70% {color#0080ff;}
            80% {color#0000ff;}
            90% {color#8000ff;}
            100% {color#ff0080;}
        }

    </style>
</head>

<body>

    <h2 class="rainbow">This is Rainbow using only CSS3</h2>
    <a href="http://www.google.com" target="_blank">go to google</a>

</body>

</html>






Posted by motolies
,