Giter Club home page Giter Club logo

ionic-parallax-profile's Introduction

DEMO (codepen)

alt tag

http://codepen.io/kevincobain2000/pen/ZQWwOW

How TO

Copy Style.css

<link href="https://github.com/kevincobain2000/ionic-parallax-profile/master/www/css/style.css" rel="stylesheet">

Stylesheet is here = https://github.com/kevincobain2000/ionic-parallax-profile/tree/master/www/css

Using it

HTML

See index.html

In your directives

.directive('headerShrink', function($document) {
  return {
    restrict: 'A',
    link: function($scope, $element, $attr) {
      var resizeFactor, scrollFactor, blurFactor;
      var header = $document[0].body.querySelector('.about-header');
      $scope.$on('userDetailContent.scroll', function(event,scrollView) {
        if (scrollView.__scrollTop >= 0) {
          scrollFactor = scrollView.__scrollTop/3.5;
          header.style[ionic.CSS.TRANSFORM] = 'translate3d(0, +' + scrollFactor + 'px, 0)';
        } else if (scrollView.__scrollTop > -70) {
          resizeFactor = -scrollView.__scrollTop/100 + 0.99;
          // blurFactor = -scrollView.__scrollTop/50;
          header.style[ionic.CSS.TRANSFORM] = 'scale('+resizeFactor+','+resizeFactor+')';
          // header.style.webkitFilter = 'blur('+blurFactor+'px)';
        }
      });
    }
  }
})

ionic-parallax-profile's People

Contributors

kevincobain2000 avatar

Stargazers

Hirox avatar York lin avatar İlker Kurtel avatar JY avatar Matrix Decoder avatar Utpaul sarkar avatar jin.zheng avatar Cristofer Domingues avatar Rodolfo Silva avatar Roland Collin avatar  avatar M1k4el4 avatar Chris Lohmann avatar Dionysios Mavrotas avatar NY avatar Jhoni avatar  avatar Cedric avatar Nipuna H Herath avatar  avatar İlker Kurtel avatar C. (Bruno) Almeida avatar Michael Olukoya avatar Jiekai Wang avatar Todd avatar Edi Santoso avatar seasonstar avatar Martinez Andres avatar Ernesto Chavez Sanchez avatar Gabriel Alcivar avatar  avatar Khagesh Sharma avatar Iljoong Hwang avatar  avatar  avatar Roosevelt Fernandes avatar Elon Zito avatar

Watchers

 avatar James Cloos avatar Gearoid Kearney avatar Utpaul sarkar avatar

ionic-parallax-profile's Issues

Android

Hello,
thank you very much for your plugin.

Is there a way to keep the button at the top of the screen when scrolling down ?

image

instead of:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.