Skip to content

Commit 71fe572

Browse files
committed
Proof of concept for the try page with animations between challenges
1 parent 10555b9 commit 71fe572

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This app authenticates with GitHub, so you'll need to create a GitHub Applicatio
2020
Run the application with `$ npm start`. You can also set the environment variables at start time. Here's an example:
2121

2222
```bash
23-
$ GH_CLIENT_ID=myid GH_CLIENT_SECRET=mysecret npm start
23+
$ GH_CLIENT_ID=myid GH_CLIENT_SECRET=mysecret DATABASE_URL=pg://localhost:5432/javascriptcom npm start
2424
```
2525

2626
For debugging all the things, run `DEBUG=* npm start`.

client/stylesheets/application.sass

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,22 @@
7878
// removes classes during various phases. If this doesn't work we can
7979
// do something different, but ng-animate is pretty crazy flexible in the timing
8080
// in code of where these happen if we need to tweak things.
81+
.course-challenge
82+
top: 30px
83+
position: absolute
84+
visibility: hidden
85+
86+
&.is-active
87+
visibility: visible
88+
8189
.animate--fade.ng-enter,
8290
.animate--fade.ng-leave
83-
// transition: all 1s ease-in-out
91+
transition: all 1s ease-in-out
8492
.animate--fade.ng-enter,
8593
.animate--fade.ng-leave.ng-leave-active
8694
display: none
87-
// opacity: 0
95+
opacity: 0
8896
.animate--fade.ng-leave,
8997
.animate--fade.ng-enter.ng-enter-active
9098
display: block
91-
// opacity: 1
99+
opacity: 1

public/templates/course.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</nav>
2424

2525
<div ng-if='ctrl.challenges.length'>
26-
<js-challenge ng-repeat='challenge in ::ctrl.challenges' challenge='challenge' ng-if='challenge.active' class='animate--fade'></js-challenge>
26+
<js-challenge ng-repeat='challenge in ::ctrl.challenges' challenge='challenge' class='animate--fade'></js-challenge>
2727

2828
<div ng-if='ctrl.onWrapupPage()' class='animate--fade'>
2929
<div class="g">

0 commit comments

Comments
 (0)