Skip to content

added transition#1

Open
christdoesselaere wants to merge 1 commit into
masterfrom
feature/awesome-css-menu
Open

added transition#1
christdoesselaere wants to merge 1 commit into
masterfrom
feature/awesome-css-menu

Conversation

@christdoesselaere

Copy link
Copy Markdown
Owner

Graag wijzigingen controleren

@s-elshot s-elshot 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.

Hi Christ,
Hierbij mijn review van je code. Het ziet er goed uit en heb een paar kleine opmerkingen, maar ik denk dat je die zelf ook wel doorhad.

groet,

Stephan

Comment thread styles.css

#container {
background-color: white;
border: aqua 10px solid;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@christdoesselaere: de border van "container" is nog zichtbaar.

Comment thread styles.css
--menu-bar-height: 10px;
}

#container {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@christdoesselaere:
Het activatie-kader lijkt nu wat groot: het was de bedoeling om de transitie aan te roepen bij het hoveren over een van de drie balkjes.
In de antwoorden wordt er een width gespecificeerd: width: var(--menu-bar-width), die ontbreekt nog in jouw oplossing;

zie bijlage ter verduidelijking
cd1

Comment thread styles.css
}

#container:hover #menu::before {
transform: translateY(20px) rotate(45deg);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@christdoesselaere: de top parameter van "#container:hover #menu::before " is niet gespecificeerd (zou top: 0;) moeten zijn, maar zie dat je het hebt opgelost in de transform-waarde translateY.

Comment thread styles.css
top: 20px;
}

:root {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@christdoesselaere: Overzichtelijk geschreven code, makkelijk te reviewen!

Comment thread styles.css
}

#container:hover #menu::after {
transform: translateY(-20px) rotate(-45deg);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@christdoesselaere: de top parameter van "#container:hover #menu::before " is niet gespecificeerd (zou top: 0;) moeten zijn, maar zie dat je het hebt opgelost in de transform-waarde translateY.

Comment thread styles.css
#menu,
#menu::before,
#menu::after {
transition: all .2s ease-in-out;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@christdoesselaere: goede oplossing! Die ga ik van je overnemen

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.

2 participants