Skip to content

Instantly share code, notes, and snippets.

@gmcusaro
gmcusaro / heart-css.css
Created September 14, 2021 14:28
Heart CSS
:root {
--heart-size: 100px;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.heart{
height: var(--heart-size);
@gmcusaro
gmcusaro / blur-effect.css
Created November 8, 2021 19:48
Blue effect
.blur {
background-color: #ffffff10;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
@gmcusaro
gmcusaro / gradient.css
Created November 8, 2021 19:51
Gradient
main {
background: linear-gradient(to bottom right, #4affde 0%, #5b9dff 40%, #d06bff 60%, #ff34d3 100%);
background-size: 200% 200%;
animation: movingGradient 5s linear infinite alternate;
}
@keyframes movingGradient {
from { background-position: 0 0; }
to { background-position: 100% 100%; }
}
@gmcusaro
gmcusaro / rectangle-spinner.css
Created November 8, 2021 19:51
Rectangle spinner
.spinner {
height: 36px;
width: 36;
background-color: #ffffff;
animation: flip 1s linear infinite;
}
@keyframes flip {
50% {
transform: rotateX(180deg);
@gmcusaro
gmcusaro / shapes.css
Last active March 17, 2022 09:16
Shape CSS
.circle {
height: 100px;
width: 100px;
border-radius: 50%;
background-color: #000000;
}
.half-circle {
height: 75px;
width: 150px;
@gmcusaro
gmcusaro / isometric-effect.css
Created November 16, 2021 13:25
Isometric effect
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.card {
transform: rotateX(60deg) rotateZ(-45deg);
transition: transform 200ms;
border-radius: 10px;
width: 100px;
@gmcusaro
gmcusaro / shade-box.css
Created December 16, 2021 08:28
Shade box
:root {
--gradient-1:linear-gradient(to bottom right,#1f005c,#5b0060,#870160,#ac255e,#ca485c,#e16b5c,#f39060,#ffb56b);
}
.box {
inline-size: 50vmin;
block-size: 50vmin;
}
html {
block-size: 100%;
@gmcusaro
gmcusaro / grid-gallery.css
Created January 4, 2022 06:54
Grid gallery
@gmcusaro
gmcusaro / pulse-point.css
Created January 8, 2022 14:40
Pulse point
.live {
height: 1em;
width: 1em;
border-radius: 50%;
background-color: #ff69b4;
animation: pulse 1500ms infinite;
}
@keyframes pulse {
0% {
@gmcusaro
gmcusaro / dot-spinner.css
Created January 25, 2022 21:19
Dot spinner
.spinner {
width: 40px;
height: 40px;
position: relative;
}
.spinner .dot {
position: absolute;
inset: 0;
display: flex;
align-items: flex-end;