Skip to content

Commit

Permalink
загрузка на Github ver. 3
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalyChy committed Mar 17, 2024
1 parent 9c5bb7c commit 979b568
Show file tree
Hide file tree
Showing 6 changed files with 446 additions and 222 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/VitalyChy/zakrivayuschiy-teg-f.git
415 changes: 216 additions & 199 deletions index.html

Large diffs are not rendered by default.

111 changes: 108 additions & 3 deletions styles/animations.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,118 @@
Кроме этого, не меняйте HTML переключателя тем. Его разметка также гарантирует работу своего скрипта.
*/

.sparks {
opacity: 0;
}

/* #### :hover #### */

.like-icon .core {
fill: transparent;
transition: fill 0.3s linear; /* linear — меняется с одинаковой скоростью */
transition-delay: 0.03s; /* Задержка */
}

.like-icon .main-body {
fill: transparent;
transition: fill 0.3s linear;
}

.like-icon.is-liked .contour {
fill: var(--accent-color);
transition: fill 0.3 linear;
transition-delay: 0.6s;
}

.like-icon:hover .core {
fill: var(--accent-color);
transition-delay: 0s;
cursor: pointer;
}

.like-icon:hover .main-body {
fill: var(--accent-color);
transition-delay: 0.05s;
cursor: pointer;
}

/* #### :active #### */

.like-icon:active .core {
fill: var(--heart-sparks-color);
transition-delay: 0s;
cursor: pointer;
}

.like-icon:active .main-body {
fill: var(--heart-sparks-color);
transition-delay: 0.05s;
cursor: pointer;
}

/* #### Клик по иконке #### */

.like-icon.is-liked .core {
fill: var(--heart-sparks-color);
transition-delay: 0s;
}

.like-icon.is-liked .main-body {
fill: var(--heart-sparks-color);
transition-delay: 0.05s;
}

.like-icon.is-liked .contour {
fill: var(--heart-sparks-color);
transition-delay: 0.06s;
}

.like-icon .main-body {
transition: fill 0s linear;
transition-delay: 0s;
}

.like-icon .core {
transition: fill 0s linear;
transition-delay: 0s;
}

.like-icon.is-liked .sparks {
animation: sparks 0.3s ease-in 0.3s 1 alternate;
}

.like-icon.is-liked .heart {
transform-origin: center;
animation: heart 0.3s ease-in 0.1s 1 alternate;
}

@keyframes cursor {

from {
0% {
left: 0;
}

to {
100% {
left: 4px;
}
}
}

@keyframes heart {
0% {
transform: scale(1);
}

100% {
transform: scale(1.5);
}
}

@keyframes sparks {
0% {
opacity: 0;
}

100% {
opacity: 1;
}
}
Loading

0 comments on commit 979b568

Please sign in to comment.