Last active
December 17, 2015 12:29
-
-
Save anthonychung/5610577 to your computer and use it in GitHub Desktop.
#tiAlloy gist use RGBA (rgb with alpha) for color gradient shadow with transparency for overlays.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.gradientShadow':{ | |
backgroundColor: 'transparent', | |
backgroundGradient:{ | |
type:'linear', | |
colors:['rgba(0,0,0,0.4)','rgba(0,0,0,0.0)'], // top gradient color, bottom gradient color | |
startPoint:{x:0,y:0}, | |
endPoint:{x:0,y: Ti.UI.FILL}, | |
backFillStart:false | |
} | |
} | |
'.gradientShadowBottom':{ | |
backgroundColor: 'transparent', | |
backgroundGradient:{ | |
type:'linear', | |
colors:['rgba(0,0,0,0.0)','rgba(0,0,0,0.4)'], // top gradient color, bottom gradient color | |
startPoint:{x:0,y:0}, | |
endPoint:{x:0,y: Ti.UI.FILL}, | |
backFillStart:false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An example/image would be nice :)