Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if/else works but if alone not working #9

Open
Falieson opened this issue Apr 22, 2016 · 1 comment
Open

if/else works but if alone not working #9

Falieson opened this issue Apr 22, 2016 · 1 comment

Comments

@Falieson
Copy link

the longMessage helper workers properly but when the showContent helper is true the item just appears - it doesn't do an animation, and if I set showContent to false the content doesn't remove its self from the display and then when showContent is true again the content is duplicated.

  <div class="row z-depth-1" style="background-color: white; margin-top: 0; padding: 10px 2px;">
    {{#transition in="fadeIn:1500" out="fadeOut"}}
      {{#if longMessage}}
        <div class="center">
          <h1 style="text-align: center;">
            Welcome to the Engine
          </h1>
          <a id="showContent" class="btn" style="">Create your Admin Account</a>
        </div>
      {{else}}
        <h1 style="text-align: center;">
          Welcome
        </h1>
      {{/if}}
    {{/transition}}
  </div>
  <div class="row">
    <div class="col s12 m6 offset-l2 l4">
      {{#transition in="flipInLeft:1500" out="flipOutRight"}}
        {{#if showContent}}
          {{> rcSidebar}}
        {{/if}}
      {{/transition}}
    </div>
    <div class="col s12 m6 l4">
      {{#transition in="flipInRight:1500" out="flipOutLeft"}}
        {{#if showContent}}
          {{> rcSidebar}}
        {{/if}}
      {{/transition}}
    </div>
  </div>
@Falieson
Copy link
Author

Falieson commented Apr 22, 2016

For now the solution seems to be doing something like this:

      {{#transition in="slideInRight:1500" out="slideOutRight"}}
        {{#if showContent}}
          {{> rcForm}}
        {{else}}
          <div style="display: none;">empty</div>
        {{/if}}
      {{/transition}}

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

No branches or pull requests

1 participant