Added solution to Use the CSS Transform scale Property to Scale an Element on Hover (#34466)

* Update index.md

* Update index.md
This commit is contained in:
The Coding Aviator
2019-03-09 19:26:31 +05:30
committed by Randell Dawson
parent 1e2e95612c
commit 3c1c8950b8

View File

@ -3,8 +3,25 @@ title: Use the CSS Transform scale Property to Scale an Element on Hover
---
## Use the CSS Transform scale Property to Scale an Element on Hover
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/responsive-web-design/applied-visual-design/use-the-css-transform-scale-property-to-scale-an-element-on-hover/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>.
### Solution
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>.
```html
<style>
div {
width: 70%;
height: 100px;
margin: 50px auto;
background: linear-gradient(
53deg,
#ccfffc,
#ffcccf
);
}
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
div:hover {
transform: scale(1.1);
}
</style>
<div></div>
```