How to make Animated Diwali Greeting card Using HTML and CSS.[Source Code]
To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.
/**
Hello Future Developer Thanks for Using learningrobo.com,
Check our website Regularly For New Snippets Post.
Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Open+Sans&display=swap');
*{
box-sizing: border-box;
}
body{
margin:0px;
font-family: 'Open Sans', sans-serif;
}
.container{
height:100vh;
width: 100%;
display:flex;
flex-direction: column;
background-color:#000;
align-items: center;
justify-content: center;
}
.diwali-card{
height:75vh;
width:55vw;
border-radius:10px;
display:flex;
background-image: linear-gradient(-225deg, #5271C4 0%, #B19FFF 48%, #ECA1FE 100%);
}
.left-child{
display: flex;
flex-direction: column;
align-items: center;
justify-content:center;
height:75vh;
padding:10px;
width:calc(55vw / 2 + 3vw);
background-color:#292929;
border-radius:10px 0px 0px 10px;
row-gap:30px;
}
.left-child img{
height:150px;
width:120px;
}
.left-child h6{
margin:5px;
font-size:20px;
color:#ddd;
}
.left-child h3{
margin:5px;
font-size:20px;
color:#B19FFF;
}
.left-child h1{
margin:5px;
font-size:80px;
color:#ddd;
font-family: 'Kaushan Script', cursive;
}
.right-child{
height:75vh;
width:calc(55vw / 2 - 3vw);
overflow: hidden;
padding:10px;
}
@keyframes rotating{
from{
transform: rotate(0deg);
}
to{
transform: rotate(360deg);
}
}
.right-child img{
height:100%;
margin-left:-92%;
animation: rotating 15s linear infinite;
filter: drop-shadow(#121212 0px 0px 5px);
}
@media screen and (max-width:1024px){
.container{
height:100vh;
padding:30px 0px;
}
.diwali-card{
flex-direction:column;
width:90%;
height:fit-content;
}
.left-child{
width:100%;
order:2;
height:fit-content;
border-radius:10px;
}
.right-child{
width:100%;
height:fit-content;
order:1;
}
.right-child img{
margin:-53% 0px 0px 0px;
width:100%;
height:fit-content;
}
}
@media screen and (max-width:630px){
.container{
height:fit-content;
padding:30px 0px;
}
.diwali-card{
flex-direction:column;
width:98%;
height:fit-content;
}
.left-child{
width:100%;
order:2;
height:fit-content;
border-radius:10px;
}
.right-child{
width:100%;
height:fit-content;
order:1;
}
.right-child img{
margin:-53% 0px 0px 0px;
width:100%;
height:fit-content;
}
}
.credit a{
text-decoration: none;
color: #ddd;
font-weight: 800;
}
.credit{
color: #ddd;
text-align: center;
margin-top: 10px;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
color:tomato;
font-size:20px;
}
Thank you for reading our blog. If you face any problem in Creating a Animated Diwali Greeting card Using HTML and CSS ., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.
Explore
Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.
In Our older post it doesnot work we working on that.
Post a Comment
Thank you
Learning robo team