Skip to content

Instantly share code, notes, and snippets.

@jimsynz
Created May 22, 2018 02:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimsynz/aa39bdb8a438848892dec1fd5a4c7323 to your computer and use it in GitHub Desktop.
Save jimsynz/aa39bdb8a438848892dec1fd5a4c7323 to your computer and use it in GitHub Desktop.
How to use Semantic UI's visibility module with Semantic UI Ember.
{{#ui-visibility class="ui segment masthead"
once=false
onBottomPassed=(action "mastheadOffScreen")
onBottomPassedReverse=(action "mastheadOnScreen") }}
<div class="ui container">
<h1>Hello, World!</h1>
</div>
{{/ui-visibility}}
import Component from '@ember/component';
import Base from 'semantic-ui-ember/mixins/base';
export default Component.extend(Base, {
module: 'visibility',
classNames: ['ui', 'visibility']
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment