Skip to content

smooth-change#2

Open
KapToH337 wants to merge 2 commits into
developfrom
smooth-change
Open

smooth-change#2
KapToH337 wants to merge 2 commits into
developfrom
smooth-change

Conversation

@KapToH337

Copy link
Copy Markdown
Owner

padding: 8px 6px;
width: 100%;
height: 100%;
outline: 3px solid #f3f3f3;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task requires use border. But it`s also good solution.


&__name {
margin: 45px 0 0 14px;
margin: 0 0 0 14px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can write just "margin-bottom: 14px;".

@aionova aionova left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great start!

Comment thread src/styles/block/card.scss Outdated
}

&__img:hover {
margin: 0 0 37px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't animate width, height, margins and paddings. Use transform scale for changing size and change border-color.
https://pqina.nl/blog/animating-width-and-height-without-the-squish-effect/

background-color: $light-blue-color;
border: 1px solid $light-blue-color;
border-radius: 5px;
transition-duration: 0.4s;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include what exactly you use transition for (transform, color, etc.)

@aionova aionova left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indicate what exact properties you use transition for. Don't use transition: all.

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

Successfully merging this pull request may close these issues.

3 participants