Search
 
SCRIPT & CODE EXAMPLE
 

CSS

play button animation css

<head>
<style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}
body{
  width:100vw;
  height:100vh;
  background:#efeeee;
  display:grid;
  place-items:center;
}
.container{
  display:grid;
  place-items:center;
  cursor:pointer;
  padding:4rem;
  background:#efeeee;
  border-radius:50%;
  transition:all 0.3s ease-in;
  box-shadow: 10px 10px 10px rgba(0,0,0,0.1),
    -10px -10px 10px rgba(255,255,255,0.6);
}
.container .fas{
  display:grid;
  place-items:center;
  font-size:4rem;
  color:gray;
}
.container:active{
  box-shadow: inset 10px 10px 10px rgba(0,0,0,0.1),
    inset -10px -10px 10px rgba(255,255,255,0.6);
}
.container:active .fas{
  color:#721efa;
}
</style>
</head>
<body>
  <div class="container">
    <i class="fas fa-play"></i>
  </div>  
</body>
Comment

PREVIOUS NEXT
Code Example
Css :: putting an object in front of a page javascript 
Css :: css div hexagon 
Css :: css create array 
Css :: Sidebar-Content layout 
Css :: the user specified as a definer does not exist 
Typescript :: req.user typescript 
Typescript :: expected 2 arguments but got 1. viewchild angular 
Typescript :: remove &nbsp from string in typescript 
Typescript :: jquery id that starts with 
Typescript :: check port windows 
Typescript :: regex only digits and dots 
Typescript :: yarn typescript 
Typescript :: enabletrace angular 
Typescript :: typescript remove object from array 
Typescript :: typescript how to check if string is a date 
Typescript :: check typescript version 
Typescript :: replaceall nodejs 
Typescript :: nodemon typescript 
Typescript :: react typescript onclick stop propagation 
Typescript :: typescript get the mime type from base64 string 
Typescript :: adonis js order by two columns 
Typescript :: adonis where has 
Typescript :: vscode custom snippets multiple transform 
Typescript :: pandas add a value counts column to dataframe 
Typescript :: typescript == vs === 
Typescript :: move items from one log to another typescript 
Typescript :: typescript initialise map 
Typescript :: python requests post set content type 
Typescript :: block robots from crawling 
Typescript :: wordpress have_posts not working 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =