/ionic-angular-parallax

:clipboard: Ionic app to display a parallax effect so scrolling makes an image move out of view slower than the actual content. Another great tutorial from Simon Grimm - see Readme for link

Primary LanguageTypeScript

⚡ Ionic Angular Parallax

📄 Table of contents

📚 General info

📷 Screenshots

screenshot

📶 Technologies

💾 Setup

  • npm i to install dependencies
  • Type: 'ionic serve' to start the server on _localhost://8100

💻 Code Examples

  • Extract from parallax-header.directive.ts component initialization lifecycle hook to get an element from the Home page by its class name.
ngOnInit() {
    let content = this.element.nativeElement;
    this.header = content.getElementsByClassName("parallax-image")[0];

    this.domCtrl.read(() => {
      this.headerHeight = this.header.clientHeight;
    });
  }

🆒 Features

📋 Status & To-do list

  • Status: Working
  • To-do: Nothing

👏 Inspiration

📁 License

  • This project is licensed under the terms of the MIT license.

✉️ Contact