You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by bo...@apache.org on 2017/03/29 07:28:20 UTC

[2/4] incubator-weex git commit: * [ios] add example for gradient alpha

* [ios] add example for gradient alpha


Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/beb83bbe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/beb83bbe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/beb83bbe

Branch: refs/heads/0.12-dev
Commit: beb83bbe310ed3c73fefe2b64cfa0de8ac8cee4f
Parents: 92a5c29
Author: acton393 <zh...@gmail.com>
Authored: Wed Mar 29 14:45:25 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Mar 29 14:45:25 2017 +0800

----------------------------------------------------------------------
 examples/linear-gradient.we | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/beb83bbe/examples/linear-gradient.we
----------------------------------------------------------------------
diff --git a/examples/linear-gradient.we b/examples/linear-gradient.we
index babe158..fe1637b 100644
--- a/examples/linear-gradient.we
+++ b/examples/linear-gradient.we
@@ -1,5 +1,8 @@
 <template>
     <scroller style="background-color: #3a3a3a">
+        <div class="container1" style="background-image:linear-gradient(to right,rgba(255,100,100,0),rgb(255,100,50,1));">
+            <text class="direction">Alpha gradient</text>
+        </div>
         <div class="container1" style="background-image:linear-gradient(to right,#43C6AC,#F8FFAE);">
             <text class="direction">to right</text>
         </div>