Skip to content

Instantly share code, notes, and snippets.

@anthonychung
Last active December 17, 2015 12:29
Show Gist options
  • Save anthonychung/5610577 to your computer and use it in GitHub Desktop.
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.
'.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
}
}
@FokkeZB
Copy link

FokkeZB commented May 20, 2013

An example/image would be nice :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment