Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions html/lesson5/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,10 @@ a.btn {
padding: 20px 30px;
border-radius: 5px;
}

a.btn:hover {
background: black;
transition-property: background;
transition-duration: 4s;
transition-delay: 1s;
}
55 changes: 55 additions & 0 deletions html/lesson5/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,61 @@ In our case, we only want to change the style of every odd row. Achieving that i

> Try changing odd to even


### Transitions

Let's take some **property** in our code and change it, making it somehow different. E.g. The `background` of the two links named **btn**, and let's change it on hover. This is a 'change'. Now we can have this affect take place during a number of seconds, this is a **Transition**.
Go ahead and add the selector to the stylesheet.

```css
a.btn:hover {

[your property: your value;]

}
```

Add the **property** which we are chaning and its new value:
Copy link
Contributor

Choose a reason for hiding this comment

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

This property already exists in the tutorial, could we say that we are going to go back and amend it rather than add it please?


```css
a.btn:hover {
background: black;
}```

Now create a **Transition** affect:

```css
a.btn:hover {
background: black;
transition-duration: 4s;
}```

Create another one:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we amend this line saying that we are adding in the transition delay please?


```css
a.btn:hover {
background: black;
transition-duration: 4s;
transition-delay: 1s;
}```


Copy link
Contributor

Choose a reason for hiding this comment

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

The formatting of this section is not correct.

screen shot 2016-12-05 at 10 19 04















Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove all these added extra lines please?



## But before we end our lesson

### RGB colors and opacity
Expand Down