Skip to content

Instantly share code, notes, and snippets.

@loadedsith
Created October 26, 2022 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loadedsith/5a260e72a029dea1fdef5abd0d4aeb27 to your computer and use it in GitHub Desktop.
Save loadedsith/5a260e72a029dea1fdef5abd0d4aeb27 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.pulse-fade {
animation-name: pulse;
animation-duration: 2s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}
.pulse-fade-1 {animation-delay: 0.25s;}
.pulse-fade-2 {animation-delay: 0.5s;}
.pulse-fade-3 {animation-delay: 0.75s;}
.pulse-fade-4 {animation-delay: 1s;}
@keyframes pulse {
0% {
opacity: 100%;
}
50% {
opacity: 50%;
}
100% {
opacity: 99.9%;
}
}
/*
@media (prefers-reduce-motion) {
@keyframes pulse {
0% {
opacity: 100%;
}
100% {
opacity: 100%;
}
}
}*/
body {
background-color: rgba(176, 196, 223, 1);
}
.tile-stencil {
height: 284px;
width: 310px;
border-radius: 4px;
background-color: white;
position: relative;
box-shadow: 0 2px 2px 0 rgb(0 0 0 / 10%);
}
.tile-image {
display: inline-block;
width: 78px;
height: 78px;
border-radius: 100px;
background-color: rgb(243, 243, 243);
transform: translateX(-50%);
left: 50%;
position: relative;
margin-top:3rem;
}
.tile-text {
height: 75px;
display: flex;
flex-direction: column;
margin-top:3rem;
}
.font-size-six-stencil {
margin-top: 1rem;
width: 70%;
/* This is smaller than the text height by about 30 percent based on feedback from ux */
height: 8px;
background-color:rgb(243, 243, 243);
border-radius: 4px;
align-self: center;
}
.font-size-six-stencil + .font-size-six-stencil {
opacity: 90%;
width: 65%;
}
.font-size-six-stencil + .font-size-six-stencil + .font-size-six-stencil {
opacity: 85%;
width: 60%;
}
<article class="tile-stencil">
<div class="slds-card__body slds-card__body_inner slds-m-top_large">
<div class="slds-illustration slds-illustration_small">
<div class="tile-image pulse-fade pulse-fade-1"></div>
</div>
<div class="tile-text">
<div class="font-size-six-stencil pulse-fade pulse-fade-2"></div>
<div class="font-size-six-stencil pulse-fade pulse-fade-3"></div>
<div class="font-size-six-stencil pulse-fade pulse-fade-4"></div>
</div>
</div>
</article>
.pulse-fade {
animation-name: pulse;
animation-duration: 2s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
}
.pulse-fade-1 {
animation-delay: 0.25s;
}
.pulse-fade-2 {
animation-delay: 0.5s;
}
.pulse-fade-3 {
animation-delay: 0.75s;
}
.pulse-fade-4 {
animation-delay: 1s;
}
@keyframes pulse {
0% {
opacity: 100%;
}
50% {
opacity: 50%;
}
100% {
opacity: 99.9%;
}
}
/*
@media (prefers-reduce-motion) {
@keyframes pulse {
0% {
opacity: 100%;
}
100% {
opacity: 100%;
}
}
}*/
body {
background-color: #b0c4df;
}
.tile-stencil {
height: 284px;
width: 310px;
border-radius: 4px;
background-color: white;
position: relative;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
}
.tile-image {
display: inline-block;
width: 78px;
height: 78px;
border-radius: 100px;
background-color: #f3f3f3;
transform: translateX(-50%);
left: 50%;
position: relative;
margin-top: 3rem;
}
.tile-text {
height: 75px;
display: flex;
flex-direction: column;
margin-top: 3rem;
}
.font-size-six-stencil {
margin-top: 1rem;
width: 70%;
/* This is smaller than the text height by about 30 percent based on feedback from ux */
height: 8px;
background-color: #f3f3f3;
border-radius: 4px;
align-self: center;
}
.font-size-six-stencil + .font-size-six-stencil {
opacity: 90%;
width: 65%;
}
.font-size-six-stencil + .font-size-six-stencil + .font-size-six-stencil {
opacity: 85%;
width: 60%;
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment