Skip to content
Advertisements

CSS Glow Effect


HTML CODE:

<!DOCTYPE html>
<html>
<head>
    <title>page</title>
    <link rel="stylesheet" type="text/css" href="2.page.css">
</head>
<body>

    <div class="box"></div>

</body>
</html>

CSS CODE:

body{
    margin: 0;
    padding:0;
    background:#2b2e45;
}
.box{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 20px;
    height: 20px;
    background: rgba(176,255,95,1);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(176,255,95,1),
                0 0 40px rgba(176,255,95,1),
                0 0 60px rgba(176,255,95,1),
                0 0 80px rgba(176,255,95,1);
    transition: 1s;
}
.box:hover{
    box-shadow: 0 0 0 30px rgba(176,255,95,.1),
              0 0 0 60px rgba(176,255,95,.1),
              0 0 0 120px rgba(176,255,95,.1),
              0 0 0 240px rgba(176,255,95,.1),
              0 0 0 480px rgba(176,255,95,.1),
              0 0 0 960px rgba(176,255,95,.1);
            
    
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: