Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a relatable css animation for the product #19

Open
mohit355 opened this issue Oct 8, 2020 · 17 comments
Open

Add a relatable css animation for the product #19

mohit355 opened this issue Oct 8, 2020 · 17 comments
Assignees

Comments

@mohit355
Copy link
Collaborator

mohit355 commented Oct 8, 2020

No description provided.

@meghna750
Copy link

I would like to work on this

@mohit355
Copy link
Collaborator Author

Design sample

@mohit355
Copy link
Collaborator Author

@meghna750 any update

@24sristi
Copy link

i would like to work for it

@24sristi
Copy link

``/Body Properties
================================================
/
body {
background: lightblue;
margin: 0;
padding: 0;
}

/Main body component
================================================
/
.main {
margin: 40px auto;
width: 300px;
height: 300px;
border-radius: 152px;
border: 2px solid rgb(0,0,0);
background: rgb(255,255,255);
box-shadow: 0px -20px rgb(190,190,190) inset;
}

/Face component
================================================
/
.face {
position: relative;
top: -20px;
left: 40px;
width: 220px;
height: 200px;
background: rgb(255,255,255);
border: 2px solid rgb(0,0,0);
border-radius: 112px / 102px;
box-shadow: 0px -12px rgb(190,190,190) inset;
}

/Foot component - the foot on the right is a box-shadow of the one on the left (any radius changes will affect the both feet)
================================================
/
.foot {
position: relative;
top: 50px;
left: 50px;
width: 80px;
height: 60px;
border-radius: 30px 30px 8px 8px;
background: rgb(40,40,40);
/This box shadow is the foot on the right/
box-shadow: 120px 0px rgb(40,40,40);
}

/Nose component - the nostils belong to Eye Ball Right component (nostils are box-shadows of Eye Ball Right
================================================
/
.nose {
position: relative;
top: -120px;
left: 90px;
width: 120px;
height: 60px;
border-radius: 62px / 32px;
border: 2px solid rgb(0,0,0);
background: rgb(254,192,203);
box-shadow: 0px -8px rgb(230,170,170) inset;
}

/Eye components - including Eye Left (inc animation), Eye Right, Eye Ball Left (inc animation) & Eye Ball Right
================================================
/
.eye-left {
-webkit-animation: eye-looking 20s ease-in-out infinite;
-moz-animation: eye-looking 20s ease-in-out infinite;
animation: eye-looking 20s ease-in-out infinite;
position: relative;
top: -354px;
left: 76px;
width: 60px;
height: 60px;
border-radius: 34px;
background: transparent;
border: 4px solid rgb(0,0,0);
box-shadow: 0px 60px 0px -20px rgb(254,192,203) inset;
}

@-webkit-keyframes eye-looking {
5%{box-shadow: 0px 0px 0px -20px pink inset;}
23%{box-shadow: 0px 0px 0px -20px pink inset;}
30%{box-shadow: 0px 60px 0px -20px pink inset;}
}
@-moz-keyframes eye-looking {
5%{box-shadow: 0px 0px 0px -20px pink inset;}
23%{box-shadow: 0px 0px 0px -20px pink inset;}
30%{box-shadow: 0px 60px 0px -20px pink inset;}
}
@Keyframes eye-looking {
5%{box-shadow: 0px 0px 0px -20px pink inset;}
23%{box-shadow: 0px 0px 0px -20px pink inset;}
30%{box-shadow: 0px 60px 0px -20px pink inset;}
}

.eye-right {
position: relative;
top: -422px;
left: 156px;
width: 60px;
height: 60px;
border-radius: 34px;
background: transparent;
border: 4px solid rgb(0,0,0);
box-shadow: 0px 60px 0px -20px rgb(254,192,203) inset;
}

.eye-ball-left {
-webkit-animation: eye-ball-direction 20s ease-in-out infinite;
-moz-animation: eye-ball-direction 20s ease-in-out infinite;
animation: eye-ball-direction 20s ease-in-out infinite;
position: relative;
top: -220px;
left: 100px;
width: 20px;
height: 20px;
border-radius: 10px;
background: rgb(0,0,0);
}

@-webkit-keyframes eye-ball-direction {
5%{-webkit-transform: translateY(-20px);}
10%{-webkit-transform: translateY(-20px) translateX(-20px);}
18%{-webkit-transform: translateY(-20px) translateX(20px);}
23%{-webkit-transform: translateY(-16px) translateX(0px);}
30%{-webkit-transform: translateY(0px);}
}

@-moz-keyframes eye-ball-direction {
5%{-moz-transform: translateY(-20px);}
10%{-moz-transform: translateY(-20px) translateX(-20px);}
18%{-moz-transform: translateY(-20px) translateX(20px);}
23%{-moz-transform: translateY(-16px) translateX(0px);}
30%{-moz-transform: translateY(0px);}
}

@Keyframes eye-ball-direction {
5%{transform: translateY(-20px);}
10%{transform: translateY(-20px) translateX(-20px);}
18%{transform: translateY(-20px) translateX(20px);}
23%{transform: translateY(-16px) translateX(0px);}
30%{transform: translateY(0px);}
}

.eye-ball-right {
position: relative;
top: -444px;
left: 180px;
width: 20px;
height: 20px;
border-radius: 10px;
background: rgb(0,0,0);
/The box-shadow below are the two nostrils on the cow's nose/
box-shadow: -18px 60px rgb(0,0,0),
-58px 60px rgb(0,0,0);
}

/Ear components - both Ear Left & Ear Right
================================================
/
.ear-left {
position: relative;
top: -340px;
width: 80px;
height: 30px;
border-radius: 42px / 17px;
border: 2px solid rgb(0,0,0);
background: rgb(255,255,255);
-webkit-transform-origin: right center;
-moz-transform-origin: right center;
transform-origin: right center;
-webkit-transform: rotate(30deg);
-moz-transform: rotate(30deg);
transform: rotate(30deg);
box-shadow: 0px -5px rgb(254,192,203) inset;
}

.ear-right {
position: relative;
top: -370px;
left: 220px;
width: 80px;
height: 30px;
border-radius: 42px / 17px;
border: 2px solid rgb(0,0,0);
background: rgb(255,255,255);
-webkit-transform-origin: left center;
-moz-transform-origin: left center;
transform-origin: left center;
-webkit-transform: rotate(-30deg);
-moz-transform: rotate(-30deg);
transform: rotate(-30deg);
box-shadow: 0px -5px rgb(254,192,203) inset;
}

/Hay component (inc animation)
================================================
/
.hay {
-webkit-animation: chew-hay 2s ease-in-out infinite;
-moz-animation: chew-hay 2s ease-in-out infinite;
animation: chew-hay 2s ease-in-out infinite;
position: relative;
top: -72px;
left: 90px;
width: 160px;
height: 5px;
background: rgb(203,133,70);
box-shadow: 0px 4px 0px 0px rgb(253,164,40),
0px 8px 0px 0px rgb(203,133,70),
0px 12px 0px 0px rgb(253,164,40);
-webkit-transform: rotate(-25deg);
-moz-transform: rotate(-25deg);
transform: rotate(-25deg);
}

@-webkit-keyframes chew-hay {
50%{-webkit-transform: rotate(-15deg);}
100%{-webkit-transform: rotate(-25deg);}
}

@-moz-keyframes chew-hay {
50%{-moz-transform: rotate(-15deg);}
100%{-moz-transform: rotate(-25deg);}
}

@Keyframes chew-hay {
50%{transform: rotate(-15deg);}
100%{transform: rotate(-25deg);}
}
`

@24sristi
Copy link

please check

@mohit355
Copy link
Collaborator Author

Ok I will inform you tommorow

@mohit355
Copy link
Collaborator Author

mohit355 commented Oct 27, 2020

Please upload some SnapShots.

@mohit355
Copy link
Collaborator Author

@24sristi

@pallavithakare28
Copy link

@mohit355 May I work on this issue?

@mohit355
Copy link
Collaborator Author

mohit355 commented Nov 3, 2020

@pallavithakare28 yes you can but before that check the above code.

@pallavithakare28
Copy link

@mohit355 Yes Sure. and will make a PR soon. Thank you for assigning. :)

@24sristi
Copy link

24sristi commented Nov 3, 2020

image
@mohit355

@mohit355
Copy link
Collaborator Author

mohit355 commented Nov 6, 2020

@24sristi create some transition in it.I can send you an example for that

@mohit355
Copy link
Collaborator Author

mohit355 commented Nov 6, 2020

If you want

@24sristi
Copy link

24sristi commented Nov 7, 2020

@mohit355 I have created transitions. check the code once.

@mohit355
Copy link
Collaborator Author

@24sristi create a PR of this by adding this in homepage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants