[Applied Visual Design - FCC(Beta)]: Common Mistake
See original GitHub issueChallenge create-movement-using-css-animation has an issue.
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 OPR/43.0.2442.1144
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
<style>
div{
height:40px;
width: 70%;
background:black;
margin: 50 auto;
border-radius: 5px;
position: relative;
}
#rect {
animation-name: rainbow;
animation-duration: 4s;
}
@keyframes rainbow {
0% {
background-color: blue;
left: 0px;
}
50% {
background-color: green;
left: 25px;
}
100% {
background-color: yellow;
left: -25px;
}
}
</style>
<div id="rect"></div>
console result:
- The
@keyframes
rule for0%
should use theleft
offset of0px
. - The
@keyframes
rule for50%
should use theleft
offset of25px
. - The
@keyframes
rule for100%
should use theleft
offset of-25px
.
Sure enough, the left
properties are all there. He/she is missing the top
property as shown in the css code. These errors do not reflect on what the user has done wrong.
suggestion result:
- The
@keyframes
rule for0%
should use thetop
offset of0px
. - The
@keyframes
rule for50%
should use thetop
offset of50px
. - The
@keyframes
rule for100%
should use thetop
offset of0px
.
^^^ This will get these people thinking ^^^
or
warn the user that the challenge asks that the user should add the left
offset to the @keyframes
rule, not replace the top
offset with the left
offset
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
FreeCodeCamp: Applied Visual Design | by Eleftheria Batsou
Walk-through and solutions. This article will walk you through freecodecamp.org “Applied Visual Design” challenges. Visual Design in web ...
Read more >Issues on applied visual design - The freeCodeCamp Forum
Tell us what's happening: please am trying to solve some challenges on applied visual design but ikeep getting this error response “SyntaxError: ...
Read more >FCC-16-127A1.pdf
See OASIS CAP v1.2 (IPAWS Profile for the OASIS Common ... apply a definition that prevents expanding use of WEA too far.”).
Read more >Understanding the RF path - CommScope
CommScope has been a trusted partner to all kinds of wireless networks worldwide for decades, owing to our deep expertise in antenna design...
Read more >Career Guide
the most common questions encountered along ... MyUCLA in order to be eligible to apply for OCR positions. ... Able to learn from...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Brekmister: The challenge code actually includes the
top
property at all 3 keyframe stages, therefore the tests are right in checking only for the inclusion of theleft
property at the keyframe stages. Even with the suggestive empty space below thetop
property to place theleft
property, and the instruction text:maybe it would be wise to place a note/comment to strictly add a
left
property and not replace thetop
property, or any other code for that matter, as a reminder. A simple comment in the challenge code would suffice. The tests should not have to be rewritten or modified for this challenge.How the fuck am i supposed to type it then. This is my code and ive done the right things im supposed to do, but it still says im wrong???
<style> div { height: 40px; width: 70%; background: black; margin: 50px auto; border-radius: 5px; position: relative; } #rect { animation-name: rainbow; animation-duration: 4s; } @keyframes rainbow { 0% { background-color: blue; top: 0px; left: 0px; } 50% { background-color: green; top: 25px; left: 25px; } 100% { background-color: yellow; top: -25px; left: -25px; } } </style> <div id="rect"></div>