css - Image/text opacity gradient to transparent -
ive found looking on here not totally. ive seen gradients added images colours, im looking fade image out 0% opacity. in addition, in possible text also? effect this?
this may helps fiddle added layer have opacity changing top bottom.
html
<div id="layer"></div> lorem ipsum dummy text of printing , typesetting industry. lorem ipsum has been industry's standard dummy text ever since 1500s, when unknown printer took galley of type , scrambled make type specimen book. has survived not 5 centuries, leap electronic typesetting, remaining unchanged. popularised in 1960s release of letraset sheets containing lorem ipsum passages, , more desktop publishing software aldus pagemaker including versions of lorem ipsum. long established fact reader distracted readable content of page when looking @ layout. point of using lorem ipsum has more-or-less normal distribution of letters, opposed using 'content here, content here', making readable english. many desktop publishing packages , web page editors use lorem ipsum default model text, , search 'lorem ipsum' uncover many web sites still in infancy. various versions have evolved on years, accident, on purpose (injected humour , like). contrary popular belief, lorem ipsum not random text. has roots in piece of classical latin literature 45 bc, making on 2000 years old. richard mcclintock, latin professor @ hampden-sydney college in virginia, looked 1 of more obscure latin words, consectetur, lorem ipsum passage, , going through cites of word in classical literature, discovered undoubtable source. lorem ipsum comes sections 1.10.32 , 1.10.33 of "de finibus bonorum et malorum" (the extremes of , evil) cicero, written in 45 bc. book treatise on theory of ethics, popular during renaissance. first line of lorem ipsum, "lorem ipsum dolor sit amet..", comes line in section 1.10.32. standard chunk of lorem ipsum used since 1500s reproduced below interested. sections 1.10.32 , 1.10.33 "de finibus bonorum et malorum" cicero reproduced in exact original form, accompanied english versions 1914 translation h. rackham.
css
#layer{ background-image: -webkit-gradient( linear, left top, left bottom, from(rgba(255,255,255,0.1)), to(rgba(255,255,255,0.8)), color-stop(.9,#fff) ); position : fixed; width : 100%; height : 100%; }
Comments
Post a Comment