Please Subscribe My YouTube Channel

Wednesday, January 25, 2023

Htm Css Program for Css Transform animation

Css Transform animation:-



<!DOCTYPE html>

<html>
<head>
<style> 
#rollbox {
  margin: 60px;
  border: 5px solid blue;
  border-radius:20px;
  width: auto;
  height: auto;
  background-color: coral;
  color: white;
  animation: satyam 10s infinite;
}

@keyframes satyam {
  10% {transform: rotate(360deg);}
}
</style>
</head>
<body>
<center>
<h1>Animation of Transform</h1>
<p>Text rotate of div element 180 degrees, and back:<p></center>
<div id="rollbox">
  <h1>ITCI Computer Center Hardoi</h1>
</div>
</body>
</html>

Program for Filter effect on images with Html and Css.

Filter effect on images like:- Hue, Saturation, Drop-shadow, Grayscale, Brightness, Etc.

Note:- When you hover the mouse on any image then it will be affected.

Program:--

<!DOCTYPE html>  
<html>  
    <head>  
        <title>Filter an image</title>  
        <style> 
h1{  
                color:red;
}  
h1{  
    animation:blinking 1.5s infinite;  
    font-size: 60px;  
}  
    @keyframes blinking{  
    0%{ color: red; }  
    47%{ color: green; }
    50%{color:blue;}  
    62%{ color: transparent; }  
    80%{ color:transparent; }  
    100%{ color:purple;}  
    }     
              
            } 
            img{display:inline-flex;}      
            #im1:hover {  
                -webkit-filter: grayscale(100%);  
            }
            #im2:hover {  
                -webkit-filter: blur(4px);              
            } 
            #im3:hover {  
                -webkit-filter: brightness(120%);  
            } 
            #im4:hover {  
                -webkit-filter: contrast(50%);      
            }
            #im5:hover {  
                -webkit-filter: drop-shadow(3px 8px 20px blue);
            } 
           #im6:hover {  
                -webkit-filter: hue-rotate(130deg);      
            }
            #im7:hover {  
                -webkit-filter: saturate(50%);      
            }
        </style> 
    </head>  
    <body>  
        <center>  
        <h1>Welcome To ITCI</h1>
        <h1>Filter effect on images</h1>   
        <img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im1"width="300px" height="150px" alt="filter applied" />  <br>  
        <img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im2"width="300px" height="150px" alt="filter applied" />
<img src=   
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im3"width="300px" height="150px" alt="filter applied" />
<img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im4"width="300px" height="150px" alt="filter applied" />
<img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im5"width="300px" height="150px" alt="filter applied" />
<img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im6"width="300px" height="150px" alt="filter applied" />
<img src=  
"file:///C:/Users/Satyam/Downloads/192611621_2112695282215979_4754269793175258100_n.jpg"id="im7"width="300px" height="150px" alt="filter applied" />
        </center>  
    </body>  
</html>  



Tuesday, January 24, 2023

Python program for swapping two numbers:-


Python program for swapping two numbers:-


P = int( input("Please enter value for P: "))  

Q = int( input("Please enter value for Q: "))  


# To Swap the values of two variables  

P, Q = Q, P  

   

print ("The Value of P is after swapping: ", P)  

print ("The Value of Q is after swapping: ", Q)  


Python Calender Program  Python odd and even program