Saturday, 5 December 2020

                                              CSS 3D Effect

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS 3D Effects</title>
</head>
<style>
    body {
        background-color#ef9a;
    }
    div {
        marginauto;
        padding-top:50px ;
        margin-bottom10px
        border1px solid black;
        width200px;
        height100px;
        text-aligncenter;
        background-colorrgba(0255255,0.9);
        transition:1.5s ease-in-out;
    }
    .rotate-x:hover {
        transformrotateX(100deg);
        box-shadow2px 4px 18px rgba(2550,0 , 0.6);
    }
    .rotate-y:hover {
        transformrotateY(150deg);
        box-shadow2px 4px 18px rgba(2550,0 , 0.6);
    }
    .rotate-z:hover {
        transformrotateZ(90deg);
        box-shadow2px 4px 18px rgba(2550,0 , 0.6);
    }
</style>
<body>
    <div class="normal">Normal</div>
    <div class="rotate-x">Rotate-x at 120degree</div>
    <div class="rotate-y">Rotate-y at 150degree</div>
    <div class="rotate-z">Rotate-z at 90degree</div>
</body>
</html>

 

No comments:

Post a Comment

Get Phone Number Details Using Python

 Get Phone Number Details Using Python Import Python module PHONENUMBERS using command " pip install phonenumbers" in you CLI Then...