Skip to content

Instantly share code, notes, and snippets.

View mrhammadasif's full-sized avatar
😍
In love with JS

Hammad Asif mrhammadasif

😍
In love with JS
View GitHub Profile
@mrhammadasif
mrhammadasif / ParallaxPageTransformer.java
Created April 25, 2017 07:45 — forked from Aracem/ParallaxPageTransformer.java
Parallax transformer for ViewPagers that let you set different parallax effects for each view in your Fragments.
package com.aracem.utils.animations.pagetransformation;
import org.jetbrains.annotations.NotNull;
import android.support.v4.view.ViewPager;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
@mrhammadasif
mrhammadasif / DisableHome.java
Created February 1, 2016 11:53 — forked from Epsiloni/DisableHome.java
Disabling Android Home Button (It's not 100% there, but using immersive on KitKat should make it work much better)
package com.example.app;
import android.app.Activity;
import android.app.ActionBar;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
@mrhammadasif
mrhammadasif / my.css
Created January 22, 2016 09:22 — forked from anonymous/my.css
CSS Gradient Animation
background: linear-gradient(313deg, #000000, #5f5f5f);
background-size: 400% 400%;
-webkit-animation: AnimationName 16s ease infinite;
-moz-animation: AnimationName 16s ease infinite;
-o-animation: AnimationName 16s ease infinite;
animation: AnimationName 16s ease infinite;
@-webkit-keyframes AnimationName {
    0%{background-position:0% 61%}
    50%{background-position:100% 40%}
    100%{background-position:0% 61%}