You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2021/01/08 04:38:34 UTC

[incubator-echarts-www] branch next updated (d591b38 -> c51585f)

This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a change to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-www.git.


    from d591b38  fix example view page.
     new 492068a  update index animation
     new 05be4f5  move js file
     new c51585f  Merge branch 'next' of github.com:ecomfe/echarts-www into next

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 _jade/zh/index.jade                               |  173 +--
 _scss/_components.page.scss                       |    2 +-
 _scss/_pages.index.scss                           |   14 +-
 {legacy/css => asset}/font/OpenSans-Bold.ttf      |  Bin
 {legacy/css => asset}/font/OpenSans-Regular.ttf   |  Bin
 LICENSE => asset/font/Open_Sans/LICENSE.txt       |  403 +++---
 asset/font/Open_Sans/OpenSans-BoldItalic.ttf      |  Bin 0 -> 92628 bytes
 asset/font/Open_Sans/OpenSans-ExtraBold.ttf       |  Bin 0 -> 102076 bytes
 asset/font/Open_Sans/OpenSans-ExtraBoldItalic.ttf |  Bin 0 -> 92772 bytes
 asset/font/Open_Sans/OpenSans-Italic.ttf          |  Bin 0 -> 92240 bytes
 asset/font/Open_Sans/OpenSans-Light.ttf           |  Bin 0 -> 101696 bytes
 asset/font/Open_Sans/OpenSans-LightItalic.ttf     |  Bin 0 -> 92488 bytes
 asset/font/Open_Sans/OpenSans-SemiBold.ttf        |  Bin 0 -> 100820 bytes
 asset/font/Open_Sans/OpenSans-SemiBoldItalic.ttf  |  Bin 0 -> 92180 bytes
 asset/lottie/json/bg_02.json                      |    2 +-
 asset/lottie/json/bg_03.json                      |    2 +-
 asset/lottie/json/bg_04.json                      |    2 +-
 asset/lottie/json/bg_05.json                      |    2 +-
 asset/lottie/json/bg_06.json                      |    2 +-
 asset/lottie/json/paper.json                      |    2 +-
 js/index.js                                       |  126 +-
 vendors/scrollreveal.js                           | 1546 +++++++++++++++++++++
 22 files changed, 1897 insertions(+), 379 deletions(-)
 copy {legacy/css => asset}/font/OpenSans-Bold.ttf (100%)
 copy {legacy/css => asset}/font/OpenSans-Regular.ttf (100%)
 copy LICENSE => asset/font/Open_Sans/LICENSE.txt (98%)
 create mode 100644 asset/font/Open_Sans/OpenSans-BoldItalic.ttf
 create mode 100644 asset/font/Open_Sans/OpenSans-ExtraBold.ttf
 create mode 100644 asset/font/Open_Sans/OpenSans-ExtraBoldItalic.ttf
 create mode 100644 asset/font/Open_Sans/OpenSans-Italic.ttf
 create mode 100644 asset/font/Open_Sans/OpenSans-Light.ttf
 create mode 100644 asset/font/Open_Sans/OpenSans-LightItalic.ttf
 create mode 100644 asset/font/Open_Sans/OpenSans-SemiBold.ttf
 create mode 100644 asset/font/Open_Sans/OpenSans-SemiBoldItalic.ttf
 create mode 100644 vendors/scrollreveal.js


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[incubator-echarts-www] 01/03: update index animation

Posted by ov...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-www.git

commit 492068a2e4d4ad737feb86dfa159c33ea960652f
Author: Ovilia <zw...@gmail.com>
AuthorDate: Thu Jan 7 17:03:14 2021 +0800

    update index animation
---
 _jade/zh/index.jade                               |   81 +-
 _scss/_pages.index.scss                           |   14 +-
 asset/font/OpenSans-Bold.ttf                      |  Bin 0 -> 104120 bytes
 asset/font/OpenSans-Regular.ttf                   |  Bin 0 -> 96932 bytes
 asset/font/Open_Sans/LICENSE.txt                  |  202 +++
 asset/font/Open_Sans/OpenSans-BoldItalic.ttf      |  Bin 0 -> 92628 bytes
 asset/font/Open_Sans/OpenSans-ExtraBold.ttf       |  Bin 0 -> 102076 bytes
 asset/font/Open_Sans/OpenSans-ExtraBoldItalic.ttf |  Bin 0 -> 92772 bytes
 asset/font/Open_Sans/OpenSans-Italic.ttf          |  Bin 0 -> 92240 bytes
 asset/font/Open_Sans/OpenSans-Light.ttf           |  Bin 0 -> 101696 bytes
 asset/font/Open_Sans/OpenSans-LightItalic.ttf     |  Bin 0 -> 92488 bytes
 asset/font/Open_Sans/OpenSans-SemiBold.ttf        |  Bin 0 -> 100820 bytes
 asset/font/Open_Sans/OpenSans-SemiBoldItalic.ttf  |  Bin 0 -> 92180 bytes
 asset/lottie/json/bg_02.json                      |    2 +-
 asset/lottie/json/bg_03.json                      |    2 +-
 asset/lottie/json/bg_04.json                      |    2 +-
 asset/lottie/json/bg_05.json                      |    2 +-
 asset/lottie/json/bg_06.json                      |    2 +-
 asset/lottie/json/paper.json                      |    2 +-
 vendors/scrollreveal.js                           | 1546 +++++++++++++++++++++
 20 files changed, 1808 insertions(+), 47 deletions(-)

diff --git a/_jade/zh/index.jade b/_jade/zh/index.jade
index 562b165..f28745f 100644
--- a/_jade/zh/index.jade
+++ b/_jade/zh/index.jade
@@ -4,7 +4,7 @@ extends ../layouts/basic
 
 block extra_head
     title Apache ECharts
-    script(src="https://unpkg.com/scrollreveal")
+    script(src="#{cdnPayRoot}/#{ecWWWLang}/vendors/scrollreveal.js")
     script(src="#{cdnPayRoot}/#{ecWWWLang}/asset/lottie/js/lottie.min.js?_v_=#{cdnPayVersion}")
 
 block content
@@ -47,55 +47,53 @@ block content
                         a.more.reveal(href='#') 查看完整特性
                     .row
                         .col-md-6
-                            .index-feature
+                            .index-feature#index-feature-1
                                 .index-feature-left.reveal
                                     .index-feature-icon-bg#bg-icon-1
                                     .index-feature-icon#icon-1
                                 .index-feature-right.reveal
                                     h3.reveal 丰富的图表类型
-                                    p.reveal-later 内置的 20 多种图表、强大的自定义系列以及来自社区贡献的扩展插件,助你轻松实现各种可视化需求。
+                                    p.reveal-later 提供开箱即用的 20 多种图表和十几种组件,并且支持各种图表以及组件的任意组合。
                         .col-md-6
-                            .index-feature
+                            .index-feature#index-feature-2
                                 .index-feature-left.reveal
                                     .index-feature-icon-bg#bg-icon-2
                                     .index-feature-icon#icon-2
                                 .index-feature-right
-                                    h3.reveal 丰富的图表类型
-                                    p.reveal-later 内置的 20 多种图表、强大的自定义系列以及来自社区贡献的扩展插件,助你轻松实现各种可视化需求。
-                                    //- h3.reveal 强劲的渲染引擎
-                                    //- p.reveal-later 采用增量渲染、流式加载等技术,千万级数据的图表也能在网页上流畅交互。
+                                    h3.reveal 强劲的渲染引擎
+                                    p.reveal-later Canvas、SVG 双引擎一键切换,增量渲染、流加载等技术实现千万级数据的流畅交互。
                         .col-md-6
-                            .index-feature
+                            .index-feature#index-feature-3
                                 .index-feature-left.reveal
                                     .index-feature-icon-bg#bg-icon-3
                                     .index-feature-icon#icon-3
                                 .index-feature-right
-                                    h3.reveal 丰富的图表类型
-                                    p.reveal-later 内置的 20 多种图表、强大的自定义系列以及来自社区贡献的扩展插件,助你轻松实现各种可视化需求。
+                                    h3.reveal 专业的数据分析
+                                    p.reveal-later 通过数据集管理数据,支持数据过滤、聚类、回归,帮助实现同一份数据的多维度分析。
                         .col-md-6
-                            .index-feature
+                            .index-feature#index-feature-4
                                 .index-feature-left.reveal
                                     .index-feature-icon-bg#bg-icon-4
                                     .index-feature-icon#icon-4
                                 .index-feature-right
-                                    h3.reveal 丰富的图表类型
-                                    p.reveal-later 内置的 20 多种图表、强大的自定义系列以及来自社区贡献的扩展插件,助你轻松实现各种可视化需求。
+                                    h3.reveal 优雅的可视化设计
+                                    p.reveal-later 默认设计遵从可视化原则,支持响应式设计,并且提供了灵活的配置项方便开发者定制。
                         .col-md-6
-                            .index-feature
+                            .index-feature#index-feature-5
                                 .index-feature-left.reveal
                                     .index-feature-icon-bg#bg-icon-5
                                     .index-feature-icon#icon-5
                                 .index-feature-right
-                                    h3.reveal 丰富的图表类型
-                                    p.reveal-later 内置的 20 多种图表、强大的自定义系列以及来自社区贡献的扩展插件,助你轻松实现各种可视化需求。
+                                    h3.reveal 健康的开源社区
+                                    p.reveal-later 活跃的社区用户保证了项目的健康发展,也贡献了丰富的第三方插件满足不同场景的需求。
                         .col-md-6
-                            .index-feature
+                            .index-feature#index-feature-6
                                 .index-feature-left.reveal
                                     .index-feature-icon-bg#bg-icon-6
                                     .index-feature-icon#icon-6
                                 .index-feature-right
-                                    h3.reveal 丰富的图表类型
-                                    p.reveal-later 内置的 20 多种图表、强大的自定义系列以及来自社区贡献的扩展插件,助你轻松实现各种可视化需求。
+                                    h3.reveal 友好的无障碍访问
+                                    p.reveal-later 智能生成的图表描述和贴花图案,帮助视力障碍人士了解图表内容,读懂图表背后的故事。
 
             script(type='text/javascript').
                 var animationMap = {};
@@ -114,14 +112,23 @@ block content
                     });
                 }
                 setLottieAnimatiion('icon-1', 'asset/lottie/json/chart.json');
-                setLottieAnimatiion('icon-2', 'asset/lottie/json/simple.json');
-                setLottieAnimatiion('icon-3', 'asset/lottie/json/fly.json');
-                setLottieAnimatiion('icon-4', 'asset/lottie/json/analysis.json');
-                setLottieAnimatiion('icon-5', 'asset/lottie/json/compatible.json');
-                setLottieAnimatiion('icon-6', 'asset/lottie/json/grown.json');
+                setLottieAnimatiion('icon-2', 'asset/lottie/json/fly.json');
+                setLottieAnimatiion('icon-3', 'asset/lottie/json/analysis.json');
+                setLottieAnimatiion('icon-4', 'asset/lottie/json/compatible.json');
+                setLottieAnimatiion('icon-5', 'asset/lottie/json/grown.json');
+                setLottieAnimatiion('icon-6', 'asset/lottie/json/simple.json');
 
                 for(var i = 0; i < 6; i++) {
                     setLottieAnimatiion('bg-icon-' + (i + 1), 'asset/lottie/json/bg_0'+ (i + 1) + '.json');
+                    (function (i) {
+                        //- setTimeout(function () {
+                            console.log(i, '#index-feature-' + (i + 1), $('#index-feature-' + (i + i)))
+                            $('#index-feature-' + (i + 1)).mouseenter(function () {
+                                console.log('hover' + (i + 1));
+                                animationMap['icon-' + (i + 1)].goToAndPlay(0);
+                            });
+                        //- });
+                    })(i);
                 }
 
             section#publication
@@ -129,9 +136,9 @@ block content
                     #start-line
                     .paper
                         .content
-                            h2.reveal ECharts: A Declarative Framework for Rapid Construction of Web-based Visualization
-                            p.note.reveal-later 如果您在科研项目、产品、学术论文、技术报告、新闻报告、教育、专利以及其他相关活动中使用了 Apache ECharts,欢迎引用本论文。
-                            .single-btn-panel
+                            h2.reveal-latest ECharts: A Declarative Framework for Rapid Construction of Web-based Visualization
+                            p.note.reveal-latest 如果您在科研项目、产品、学术论文、技术报告、新闻报告、教育、专利以及其他相关活动中使用了 Apache ECharts,欢迎引用本论文。
+                            .single-btn-panel.reveal-latest
                                 a(href="http://www.cad.zju.edu.cn/home/vagblog/VAG_Work/echarts.pdf").pdf.reveal-later Visual Informatics, 2018 [PDF]
                         .icon
                             #paper-icon
@@ -150,7 +157,7 @@ block content
                         var startLine = $("#start-line").offset().top;
                         var endLine = $("#end-line").offset().top;
 
-                        if (startLine >= $(window).scrollTop() && startLine < ($(window).scrollTop() + $(window).height() - 300)) {
+                        if (startLine >= $(window).scrollTop() && startLine < ($(window).scrollTop() + $(window).height() - 200)) {
                             if (!hasStartLineShow) {
                                 $('#publication').css('opacity', 1);
                                 if (animationMap['start-line']) {
@@ -176,7 +183,7 @@ block content
                             }
                         }
 
-                        if (endLine <= 300) {
+                        if (endLine <= 400) {
                             if (!hasEndLineShow) {
                                 if (animationMap['end-line']) {
                                     animationMap['end-line'].goToAndPlay(0);
@@ -203,7 +210,7 @@ block content
                     hr
                     p 关注我们以及时获得更多最新动态
                     .btn-panel.row
-                        .col-md-3.col-sm-6
+                        .col-lg-3.col-sm-6
                             a#btn-github(href='https://github.com/apache/incubator-echarts')
                                 .btn-content
                                     .btn-logo
@@ -212,7 +219,7 @@ block content
                                         span GitHub
                                     .icon-v-right
 
-                        .col-md-3.col-sm-6
+                        .col-lg-3.col-sm-6
                             a#btn-weixin
                                 .btn-content.zh
                                     .btn-logo
@@ -221,7 +228,7 @@ block content
                                     .weixin-code
                                         img(src="images/ercode.jpg")
 
-                        .col-md-3.col-sm-6
+                        .col-lg-3.col-sm-6
                             a#btn-weibo(href='https://weibo.com/echarts')
                                 .btn-content
                                     .btn-logo
@@ -229,7 +236,7 @@ block content
                                         span 微博
                                     .icon-v-right
 
-                        .col-md-3.col-sm-6
+                        .col-lg-3.col-sm-6
                             a#btn-twitter(href='https://twitter.com/ApacheECharts')
                                 .btn-content
                                     .btn-logo
@@ -246,9 +253,13 @@ block content
                     container: '#page-index',
                     delay: 600
                 });
+                ScrollReveal().reveal('.reveal-latest', {
+                    container: '#page-index',
+                    delay: 1200
+                });
                 ScrollReveal().reveal('.reveal-about', {
                     container: '#page-index',
-                    delay: 1500
+                    delay: 600
                 });
 
         include ../components/footer
diff --git a/_scss/_pages.index.scss b/_scss/_pages.index.scss
index 605d2ba..d22aee1 100644
--- a/_scss/_pages.index.scss
+++ b/_scss/_pages.index.scss
@@ -102,6 +102,11 @@ body {
                         height: 56px;
                         background: transparent;
                         border: none;
+                        opacity: 0.5;
+
+                        &:hover {
+                            opacity: 1;
+                        }
                     }
 
                     .index-home-svg {
@@ -238,8 +243,6 @@ body {
 }
 
 #feature-section {
-    padding-top: 50px;
-
     hr {
         display: inline-block;
         text-align: center;
@@ -306,8 +309,8 @@ body {
 
     #start-line {
         position: relative;
-        left: 518px;
-        top: 82px;
+        left: 500px;
+        top: 95px;
         width: 200px;
         z-index: -10;
     }
@@ -440,8 +443,7 @@ body {
             span {
                 margin-left: 14px;
                 font-size: 20px;
-                font-weight: 500;
-                color: #06133B;
+                color: $clr-darker;
             }
 
             svg {
diff --git a/asset/font/OpenSans-Bold.ttf b/asset/font/OpenSans-Bold.ttf
new file mode 100644
index 0000000..efdd5e8
Binary files /dev/null and b/asset/font/OpenSans-Bold.ttf differ
diff --git a/asset/font/OpenSans-Regular.ttf b/asset/font/OpenSans-Regular.ttf
new file mode 100644
index 0000000..29bfd35
Binary files /dev/null and b/asset/font/OpenSans-Regular.ttf differ
diff --git a/asset/font/Open_Sans/LICENSE.txt b/asset/font/Open_Sans/LICENSE.txt
new file mode 100644
index 0000000..75b5248
--- /dev/null
+++ b/asset/font/Open_Sans/LICENSE.txt
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/asset/font/Open_Sans/OpenSans-BoldItalic.ttf b/asset/font/Open_Sans/OpenSans-BoldItalic.ttf
new file mode 100644
index 0000000..9bf9b4e
Binary files /dev/null and b/asset/font/Open_Sans/OpenSans-BoldItalic.ttf differ
diff --git a/asset/font/Open_Sans/OpenSans-ExtraBold.ttf b/asset/font/Open_Sans/OpenSans-ExtraBold.ttf
new file mode 100644
index 0000000..67fcf0f
Binary files /dev/null and b/asset/font/Open_Sans/OpenSans-ExtraBold.ttf differ
diff --git a/asset/font/Open_Sans/OpenSans-ExtraBoldItalic.ttf b/asset/font/Open_Sans/OpenSans-ExtraBoldItalic.ttf
new file mode 100644
index 0000000..0867228
Binary files /dev/null and b/asset/font/Open_Sans/OpenSans-ExtraBoldItalic.ttf differ
diff --git a/asset/font/Open_Sans/OpenSans-Italic.ttf b/asset/font/Open_Sans/OpenSans-Italic.ttf
new file mode 100644
index 0000000..1178567
Binary files /dev/null and b/asset/font/Open_Sans/OpenSans-Italic.ttf differ
diff --git a/asset/font/Open_Sans/OpenSans-Light.ttf b/asset/font/Open_Sans/OpenSans-Light.ttf
new file mode 100644
index 0000000..6580d3a
Binary files /dev/null and b/asset/font/Open_Sans/OpenSans-Light.ttf differ
diff --git a/asset/font/Open_Sans/OpenSans-LightItalic.ttf b/asset/font/Open_Sans/OpenSans-LightItalic.ttf
new file mode 100644
index 0000000..1e0c331
Binary files /dev/null and b/asset/font/Open_Sans/OpenSans-LightItalic.ttf differ
diff --git a/asset/font/Open_Sans/OpenSans-SemiBold.ttf b/asset/font/Open_Sans/OpenSans-SemiBold.ttf
new file mode 100644
index 0000000..54e7059
Binary files /dev/null and b/asset/font/Open_Sans/OpenSans-SemiBold.ttf differ
diff --git a/asset/font/Open_Sans/OpenSans-SemiBoldItalic.ttf b/asset/font/Open_Sans/OpenSans-SemiBoldItalic.ttf
new file mode 100644
index 0000000..aebcf14
Binary files /dev/null and b/asset/font/Open_Sans/OpenSans-SemiBoldItalic.ttf differ
diff --git a/asset/lottie/json/bg_02.json b/asset/lottie/json/bg_02.json
index 84c993b..69693d0 100644
--- a/asset/lottie/json/bg_02.json
+++ b/asset/lottie/json/bg_02.json
@@ -1 +1 @@
-{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
+{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
diff --git a/asset/lottie/json/bg_03.json b/asset/lottie/json/bg_03.json
index 69693d0..7979996 100644
--- a/asset/lottie/json/bg_03.json
+++ b/asset/lottie/json/bg_03.json
@@ -1 +1 @@
-{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
+{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
diff --git a/asset/lottie/json/bg_04.json b/asset/lottie/json/bg_04.json
index 7979996..5bb8a9a 100644
--- a/asset/lottie/json/bg_04.json
+++ b/asset/lottie/json/bg_04.json
@@ -1 +1 @@
-{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
+{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
diff --git a/asset/lottie/json/bg_05.json b/asset/lottie/json/bg_05.json
index 5bb8a9a..2ee9b43 100644
--- a/asset/lottie/json/bg_05.json
+++ b/asset/lottie/json/bg_05.json
@@ -1 +1 @@
-{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
+{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
diff --git a/asset/lottie/json/bg_06.json b/asset/lottie/json/bg_06.json
index 2ee9b43..84c993b 100644
--- a/asset/lottie/json/bg_06.json
+++ b/asset/lottie/json/bg_06.json
@@ -1 +1 @@
-{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
+{"v":"5.7.3","fr":60,"ip":0,"op":75,"w":220,"h":200,"nm":"bg","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Path 63","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[0],"e":[100]},{"t":3}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[110,100,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.417,0.417,0.333],"y":[0,0,0]},"t":1,"s":[0,0,100],"e":[125,125,100]},{"i" [...]
\ No newline at end of file
diff --git a/asset/lottie/json/paper.json b/asset/lottie/json/paper.json
index ac9fb5d..f16891a 100644
--- a/asset/lottie/json/paper.json
+++ b/asset/lottie/json/paper.json
@@ -1 +1 @@
-{"v":"5.7.3","fr":60,"ip":0,"op":120,"w":1150,"h":850,"nm":"Comp 1","ddd":0,"assets":[{"id":"image_0","w":646,"h":314,"u":"images/","p":"img_0.png","e":0},{"id":"image_1","w":100,"h":92,"u":"images/","p":"img_1.png","e":0},{"id":"image_2","w":284,"h":222,"u":"images/","p":"img_2.png","e":0},{"id":"image_3","w":646,"h":432,"u":"images/","p":"img_3.png","e":0},{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"nm":"text","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0," [...]
\ No newline at end of file
+{"v":"5.7.3","fr":60,"ip":0,"op":240,"w":1150,"h":850,"nm":"Comp 1","ddd":0,"assets":[{"id":"image_0","w":646,"h":314,"u":"images/","p":"img_0.png","e":0},{"id":"image_1","w":100,"h":92,"u":"images/","p":"img_1.png","e":0},{"id":"image_2","w":284,"h":222,"u":"images/","p":"img_2.png","e":0},{"id":"image_3","w":644,"h":432,"u":"images/","p":"img_3.png","e":0},{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":2,"nm":"face.png","cl":"png","refId":"image_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x [...]
\ No newline at end of file
diff --git a/vendors/scrollreveal.js b/vendors/scrollreveal.js
new file mode 100644
index 0000000..a9393b8
--- /dev/null
+++ b/vendors/scrollreveal.js
@@ -0,0 +1,1546 @@
+/*! @license ScrollReveal v4.0.7
+
+	Copyright 2020 Fisssion LLC.
+
+	Licensed under the GNU General Public License 3.0 for
+	compatible open source projects and non-commercial use.
+
+	For commercial sites, themes, projects, and applications,
+	keep your source code private/proprietary by purchasing
+	a commercial license from https://scrollrevealjs.org/
+*/
+(function (global, factory) {
+	typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
+	typeof define === 'function' && define.amd ? define(factory) :
+	(global = global || self, global.ScrollReveal = factory());
+}(this, function () { 'use strict';
+
+	var defaults = {
+		delay: 0,
+		distance: '0',
+		duration: 600,
+		easing: 'cubic-bezier(0.5, 0, 0, 1)',
+		interval: 0,
+		opacity: 0,
+		origin: 'bottom',
+		rotate: {
+			x: 0,
+			y: 0,
+			z: 0
+		},
+		scale: 1,
+		cleanup: false,
+		container: document.documentElement,
+		desktop: true,
+		mobile: true,
+		reset: false,
+		useDelay: 'always',
+		viewFactor: 0.0,
+		viewOffset: {
+			top: 0,
+			right: 0,
+			bottom: 0,
+			left: 0
+		},
+		afterReset: function afterReset() {},
+		afterReveal: function afterReveal() {},
+		beforeReset: function beforeReset() {},
+		beforeReveal: function beforeReveal() {}
+	};
+
+	function failure() {
+		document.documentElement.classList.remove('sr');
+
+		return {
+			clean: function clean() {},
+			destroy: function destroy() {},
+			reveal: function reveal() {},
+			sync: function sync() {},
+			get noop() {
+				return true
+			}
+		}
+	}
+
+	function success() {
+		document.documentElement.classList.add('sr');
+
+		if (document.body) {
+			document.body.style.height = '100%';
+		} else {
+			document.addEventListener('DOMContentLoaded', function () {
+				document.body.style.height = '100%';
+			});
+		}
+	}
+
+	var mount = { success: success, failure: failure };
+
+	/*! @license is-dom-node v1.0.4
+
+		Copyright 2018 Fisssion LLC.
+
+		Permission is hereby granted, free of charge, to any person obtaining a copy
+		of this software and associated documentation files (the "Software"), to deal
+		in the Software without restriction, including without limitation the rights
+		to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+		copies of the Software, and to permit persons to whom the Software is
+		furnished to do so, subject to the following conditions:
+
+		The above copyright notice and this permission notice shall be included in all
+		copies or substantial portions of the Software.
+
+		THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+		IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+		FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+		AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+		LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+		OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+		SOFTWARE.
+
+	*/
+	function isDomNode(x) {
+		return typeof window.Node === 'object'
+			? x instanceof window.Node
+			: x !== null &&
+					typeof x === 'object' &&
+					typeof x.nodeType === 'number' &&
+					typeof x.nodeName === 'string'
+	}
+
+	/*! @license is-dom-node-list v1.2.1
+
+		Copyright 2018 Fisssion LLC.
+
+		Permission is hereby granted, free of charge, to any person obtaining a copy
+		of this software and associated documentation files (the "Software"), to deal
+		in the Software without restriction, including without limitation the rights
+		to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+		copies of the Software, and to permit persons to whom the Software is
+		furnished to do so, subject to the following conditions:
+
+		The above copyright notice and this permission notice shall be included in all
+		copies or substantial portions of the Software.
+
+		THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+		IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+		FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+		AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+		LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+		OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+		SOFTWARE.
+
+	*/
+
+	function isDomNodeList(x) {
+		var prototypeToString = Object.prototype.toString.call(x);
+		var regex = /^\[object (HTMLCollection|NodeList|Object)\]$/;
+
+		return typeof window.NodeList === 'object'
+			? x instanceof window.NodeList
+			: x !== null &&
+					typeof x === 'object' &&
+					typeof x.length === 'number' &&
+					regex.test(prototypeToString) &&
+					(x.length === 0 || isDomNode(x[0]))
+	}
+
+	/*! @license Tealight v0.3.6
+
+		Copyright 2018 Fisssion LLC.
+
+		Permission is hereby granted, free of charge, to any person obtaining a copy
+		of this software and associated documentation files (the "Software"), to deal
+		in the Software without restriction, including without limitation the rights
+		to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+		copies of the Software, and to permit persons to whom the Software is
+		furnished to do so, subject to the following conditions:
+
+		The above copyright notice and this permission notice shall be included in all
+		copies or substantial portions of the Software.
+
+		THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+		IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+		FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+		AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+		LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+		OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+		SOFTWARE.
+
+	*/
+
+	function tealight(target, context) {
+	  if ( context === void 0 ) { context = document; }
+
+	  if (target instanceof Array) { return target.filter(isDomNode); }
+	  if (isDomNode(target)) { return [target]; }
+	  if (isDomNodeList(target)) { return Array.prototype.slice.call(target); }
+	  if (typeof target === "string") {
+	    try {
+	      var query = context.querySelectorAll(target);
+	      return Array.prototype.slice.call(query);
+	    } catch (err) {
+	      return [];
+	    }
+	  }
+	  return [];
+	}
+
+	function isObject(x) {
+		return (
+			x !== null &&
+			x instanceof Object &&
+			(x.constructor === Object ||
+				Object.prototype.toString.call(x) === '[object Object]')
+		)
+	}
+
+	function each(collection, callback) {
+		if (isObject(collection)) {
+			var keys = Object.keys(collection);
+			return keys.forEach(function (key) { return callback(collection[key], key, collection); })
+		}
+		if (collection instanceof Array) {
+			return collection.forEach(function (item, i) { return callback(item, i, collection); })
+		}
+		throw new TypeError('Expected either an array or object literal.')
+	}
+
+	function logger(message) {
+		var details = [], len = arguments.length - 1;
+		while ( len-- > 0 ) details[ len ] = arguments[ len + 1 ];
+
+		if (this.constructor.debug && console) {
+			var report = "%cScrollReveal: " + message;
+			details.forEach(function (detail) { return (report += "\n — " + detail); });
+			console.log(report, 'color: #ea654b;'); // eslint-disable-line no-console
+		}
+	}
+
+	function rinse() {
+		var this$1 = this;
+
+		var struct = function () { return ({
+			active: [],
+			stale: []
+		}); };
+
+		var elementIds = struct();
+		var sequenceIds = struct();
+		var containerIds = struct();
+
+		/**
+		 * Take stock of active element IDs.
+		 */
+		try {
+			each(tealight('[data-sr-id]'), function (node) {
+				var id = parseInt(node.getAttribute('data-sr-id'));
+				elementIds.active.push(id);
+			});
+		} catch (e) {
+			throw e
+		}
+		/**
+		 * Destroy stale elements.
+		 */
+		each(this.store.elements, function (element) {
+			if (elementIds.active.indexOf(element.id) === -1) {
+				elementIds.stale.push(element.id);
+			}
+		});
+
+		each(elementIds.stale, function (staleId) { return delete this$1.store.elements[staleId]; });
+
+		/**
+		 * Take stock of active container and sequence IDs.
+		 */
+		each(this.store.elements, function (element) {
+			if (containerIds.active.indexOf(element.containerId) === -1) {
+				containerIds.active.push(element.containerId);
+			}
+			if (element.hasOwnProperty('sequence')) {
+				if (sequenceIds.active.indexOf(element.sequence.id) === -1) {
+					sequenceIds.active.push(element.sequence.id);
+				}
+			}
+		});
+
+		/**
+		 * Destroy stale containers.
+		 */
+		each(this.store.containers, function (container) {
+			if (containerIds.active.indexOf(container.id) === -1) {
+				containerIds.stale.push(container.id);
+			}
+		});
+
+		each(containerIds.stale, function (staleId) {
+			var stale = this$1.store.containers[staleId].node;
+			stale.removeEventListener('scroll', this$1.delegate);
+			stale.removeEventListener('resize', this$1.delegate);
+			delete this$1.store.containers[staleId];
+		});
+
+		/**
+		 * Destroy stale sequences.
+		 */
+		each(this.store.sequences, function (sequence) {
+			if (sequenceIds.active.indexOf(sequence.id) === -1) {
+				sequenceIds.stale.push(sequence.id);
+			}
+		});
+
+		each(sequenceIds.stale, function (staleId) { return delete this$1.store.sequences[staleId]; });
+	}
+
+	function clean(target) {
+		var this$1 = this;
+
+		var dirty;
+		try {
+			each(tealight(target), function (node) {
+				var id = node.getAttribute('data-sr-id');
+				if (id !== null) {
+					dirty = true;
+					var element = this$1.store.elements[id];
+					if (element.callbackTimer) {
+						window.clearTimeout(element.callbackTimer.clock);
+					}
+					node.setAttribute('style', element.styles.inline.generated);
+					node.removeAttribute('data-sr-id');
+					delete this$1.store.elements[id];
+				}
+			});
+		} catch (e) {
+			return logger.call(this, 'Clean failed.', e.message)
+		}
+
+		if (dirty) {
+			try {
+				rinse.call(this);
+			} catch (e) {
+				return logger.call(this, 'Clean failed.', e.message)
+			}
+		}
+	}
+
+	function destroy() {
+		var this$1 = this;
+
+		/**
+		 * Remove all generated styles and element ids
+		 */
+		each(this.store.elements, function (element) {
+			element.node.setAttribute('style', element.styles.inline.generated);
+			element.node.removeAttribute('data-sr-id');
+		});
+
+		/**
+		 * Remove all event listeners.
+		 */
+		each(this.store.containers, function (container) {
+			var target =
+				container.node === document.documentElement ? window : container.node;
+			target.removeEventListener('scroll', this$1.delegate);
+			target.removeEventListener('resize', this$1.delegate);
+		});
+
+		/**
+		 * Clear all data from the store
+		 */
+		this.store = {
+			containers: {},
+			elements: {},
+			history: [],
+			sequences: {}
+		};
+	}
+
+	/*! @license Rematrix v0.3.0
+
+		Copyright 2018 Julian Lloyd.
+
+		Permission is hereby granted, free of charge, to any person obtaining a copy
+		of this software and associated documentation files (the "Software"), to deal
+		in the Software without restriction, including without limitation the rights
+		to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+		copies of the Software, and to permit persons to whom the Software is
+		furnished to do so, subject to the following conditions:
+
+		The above copyright notice and this permission notice shall be included in
+		all copies or substantial portions of the Software.
+
+		THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+		IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+		FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+		AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+		LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+		OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+		THE SOFTWARE.
+	*/
+	/**
+	 * @module Rematrix
+	 */
+
+	/**
+	 * Transformation matrices in the browser come in two flavors:
+	 *
+	 *  - `matrix` using 6 values (short)
+	 *  - `matrix3d` using 16 values (long)
+	 *
+	 * This utility follows this [conversion guide](https://goo.gl/EJlUQ1)
+	 * to expand short form matrices to their equivalent long form.
+	 *
+	 * @param  {array} source - Accepts both short and long form matrices.
+	 * @return {array}
+	 */
+	function format(source) {
+		if (source.constructor !== Array) {
+			throw new TypeError('Expected array.')
+		}
+		if (source.length === 16) {
+			return source
+		}
+		if (source.length === 6) {
+			var matrix = identity();
+			matrix[0] = source[0];
+			matrix[1] = source[1];
+			matrix[4] = source[2];
+			matrix[5] = source[3];
+			matrix[12] = source[4];
+			matrix[13] = source[5];
+			return matrix
+		}
+		throw new RangeError('Expected array with either 6 or 16 values.')
+	}
+
+	/**
+	 * Returns a matrix representing no transformation. The product of any matrix
+	 * multiplied by the identity matrix will be the original matrix.
+	 *
+	 * > **Tip:** Similar to how `5 * 1 === 5`, where `1` is the identity.
+	 *
+	 * @return {array}
+	 */
+	function identity() {
+		var matrix = [];
+		for (var i = 0; i < 16; i++) {
+			i % 5 == 0 ? matrix.push(1) : matrix.push(0);
+		}
+		return matrix
+	}
+
+	/**
+	 * Returns a 4x4 matrix describing the combined transformations
+	 * of both arguments.
+	 *
+	 * > **Note:** Order is very important. For example, rotating 45°
+	 * along the Z-axis, followed by translating 500 pixels along the
+	 * Y-axis... is not the same as translating 500 pixels along the
+	 * Y-axis, followed by rotating 45° along on the Z-axis.
+	 *
+	 * @param  {array} m - Accepts both short and long form matrices.
+	 * @param  {array} x - Accepts both short and long form matrices.
+	 * @return {array}
+	 */
+	function multiply(m, x) {
+		var fm = format(m);
+		var fx = format(x);
+		var product = [];
+
+		for (var i = 0; i < 4; i++) {
+			var row = [fm[i], fm[i + 4], fm[i + 8], fm[i + 12]];
+			for (var j = 0; j < 4; j++) {
+				var k = j * 4;
+				var col = [fx[k], fx[k + 1], fx[k + 2], fx[k + 3]];
+				var result =
+					row[0] * col[0] + row[1] * col[1] + row[2] * col[2] + row[3] * col[3];
+
+				product[i + k] = result;
+			}
+		}
+
+		return product
+	}
+
+	/**
+	 * Attempts to return a 4x4 matrix describing the CSS transform
+	 * matrix passed in, but will return the identity matrix as a
+	 * fallback.
+	 *
+	 * > **Tip:** This method is used to convert a CSS matrix (retrieved as a
+	 * `string` from computed styles) to its equivalent array format.
+	 *
+	 * @param  {string} source - `matrix` or `matrix3d` CSS Transform value.
+	 * @return {array}
+	 */
+	function parse(source) {
+		if (typeof source === 'string') {
+			var match = source.match(/matrix(3d)?\(([^)]+)\)/);
+			if (match) {
+				var raw = match[2].split(', ').map(parseFloat);
+				return format(raw)
+			}
+		}
+		return identity()
+	}
+
+	/**
+	 * Returns a 4x4 matrix describing X-axis rotation.
+	 *
+	 * @param  {number} angle - Measured in degrees.
+	 * @return {array}
+	 */
+	function rotateX(angle) {
+		var theta = Math.PI / 180 * angle;
+		var matrix = identity();
+
+		matrix[5] = matrix[10] = Math.cos(theta);
+		matrix[6] = matrix[9] = Math.sin(theta);
+		matrix[9] *= -1;
+
+		return matrix
+	}
+
+	/**
+	 * Returns a 4x4 matrix describing Y-axis rotation.
+	 *
+	 * @param  {number} angle - Measured in degrees.
+	 * @return {array}
+	 */
+	function rotateY(angle) {
+		var theta = Math.PI / 180 * angle;
+		var matrix = identity();
+
+		matrix[0] = matrix[10] = Math.cos(theta);
+		matrix[2] = matrix[8] = Math.sin(theta);
+		matrix[2] *= -1;
+
+		return matrix
+	}
+
+	/**
+	 * Returns a 4x4 matrix describing Z-axis rotation.
+	 *
+	 * @param  {number} angle - Measured in degrees.
+	 * @return {array}
+	 */
+	function rotateZ(angle) {
+		var theta = Math.PI / 180 * angle;
+		var matrix = identity();
+
+		matrix[0] = matrix[5] = Math.cos(theta);
+		matrix[1] = matrix[4] = Math.sin(theta);
+		matrix[4] *= -1;
+
+		return matrix
+	}
+
+	/**
+	 * Returns a 4x4 matrix describing 2D scaling. The first argument
+	 * is used for both X and Y-axis scaling, unless an optional
+	 * second argument is provided to explicitly define Y-axis scaling.
+	 *
+	 * @param  {number} scalar    - Decimal multiplier.
+	 * @param  {number} [scalarY] - Decimal multiplier.
+	 * @return {array}
+	 */
+	function scale(scalar, scalarY) {
+		var matrix = identity();
+
+		matrix[0] = scalar;
+		matrix[5] = typeof scalarY === 'number' ? scalarY : scalar;
+
+		return matrix
+	}
+
+	/**
+	 * Returns a 4x4 matrix describing X-axis translation.
+	 *
+	 * @param  {number} distance - Measured in pixels.
+	 * @return {array}
+	 */
+	function translateX(distance) {
+		var matrix = identity();
+		matrix[12] = distance;
+		return matrix
+	}
+
+	/**
+	 * Returns a 4x4 matrix describing Y-axis translation.
+	 *
+	 * @param  {number} distance - Measured in pixels.
+	 * @return {array}
+	 */
+	function translateY(distance) {
+		var matrix = identity();
+		matrix[13] = distance;
+		return matrix
+	}
+
+	var getPrefixedCssProp = (function () {
+		var properties = {};
+		var style = document.documentElement.style;
+
+		function getPrefixedCssProperty(name, source) {
+			if ( source === void 0 ) source = style;
+
+			if (name && typeof name === 'string') {
+				if (properties[name]) {
+					return properties[name]
+				}
+				if (typeof source[name] === 'string') {
+					return (properties[name] = name)
+				}
+				if (typeof source[("-webkit-" + name)] === 'string') {
+					return (properties[name] = "-webkit-" + name)
+				}
+				throw new RangeError(("Unable to find \"" + name + "\" style property."))
+			}
+			throw new TypeError('Expected a string.')
+		}
+
+		getPrefixedCssProperty.clearCache = function () { return (properties = {}); };
+
+		return getPrefixedCssProperty
+	})();
+
+	function style(element) {
+		var computed = window.getComputedStyle(element.node);
+		var position = computed.position;
+		var config = element.config;
+
+		/**
+		 * Generate inline styles
+		 */
+		var inline = {};
+		var inlineStyle = element.node.getAttribute('style') || '';
+		var inlineMatch = inlineStyle.match(/[\w-]+\s*:\s*[^;]+\s*/gi) || [];
+
+		inline.computed = inlineMatch ? inlineMatch.map(function (m) { return m.trim(); }).join('; ') + ';' : '';
+
+		inline.generated = inlineMatch.some(function (m) { return m.match(/visibility\s?:\s?visible/i); })
+			? inline.computed
+			: inlineMatch.concat( ['visibility: visible']).map(function (m) { return m.trim(); }).join('; ') + ';';
+
+		/**
+		 * Generate opacity styles
+		 */
+		var computedOpacity = parseFloat(computed.opacity);
+		var configOpacity = !isNaN(parseFloat(config.opacity))
+			? parseFloat(config.opacity)
+			: parseFloat(computed.opacity);
+
+		var opacity = {
+			computed: computedOpacity !== configOpacity ? ("opacity: " + computedOpacity + ";") : '',
+			generated: computedOpacity !== configOpacity ? ("opacity: " + configOpacity + ";") : ''
+		};
+
+		/**
+		 * Generate transformation styles
+		 */
+		var transformations = [];
+
+		if (parseFloat(config.distance)) {
+			var axis = config.origin === 'top' || config.origin === 'bottom' ? 'Y' : 'X';
+
+			/**
+			 * Let’s make sure our our pixel distances are negative for top and left.
+			 * e.g. { origin: 'top', distance: '25px' } starts at `top: -25px` in CSS.
+			 */
+			var distance = config.distance;
+			if (config.origin === 'top' || config.origin === 'left') {
+				distance = /^-/.test(distance) ? distance.substr(1) : ("-" + distance);
+			}
+
+			var ref = distance.match(/(^-?\d+\.?\d?)|(em$|px$|%$)/g);
+			var value = ref[0];
+			var unit = ref[1];
+
+			switch (unit) {
+				case 'em':
+					distance = parseInt(computed.fontSize) * value;
+					break
+				case 'px':
+					distance = value;
+					break
+				case '%':
+					/**
+					 * Here we use `getBoundingClientRect` instead of
+					 * the existing data attached to `element.geometry`
+					 * because only the former includes any transformations
+					 * current applied to the element.
+					 *
+					 * If that behavior ends up being unintuitive, this
+					 * logic could instead utilize `element.geometry.height`
+					 * and `element.geoemetry.width` for the distance calculation
+					 */
+					distance =
+						axis === 'Y'
+							? (element.node.getBoundingClientRect().height * value) / 100
+							: (element.node.getBoundingClientRect().width * value) / 100;
+					break
+				default:
+					throw new RangeError('Unrecognized or missing distance unit.')
+			}
+
+			if (axis === 'Y') {
+				transformations.push(translateY(distance));
+			} else {
+				transformations.push(translateX(distance));
+			}
+		}
+
+		if (config.rotate.x) { transformations.push(rotateX(config.rotate.x)); }
+		if (config.rotate.y) { transformations.push(rotateY(config.rotate.y)); }
+		if (config.rotate.z) { transformations.push(rotateZ(config.rotate.z)); }
+		if (config.scale !== 1) {
+			if (config.scale === 0) {
+				/**
+				 * The CSS Transforms matrix interpolation specification
+				 * basically disallows transitions of non-invertible
+				 * matrixes, which means browsers won't transition
+				 * elements with zero scale.
+				 *
+				 * That’s inconvenient for the API and developer
+				 * experience, so we simply nudge their value
+				 * slightly above zero; this allows browsers
+				 * to transition our element as expected.
+				 *
+				 * `0.0002` was the smallest number
+				 * that performed across browsers.
+				 */
+				transformations.push(scale(0.0002));
+			} else {
+				transformations.push(scale(config.scale));
+			}
+		}
+
+		var transform = {};
+		if (transformations.length) {
+			transform.property = getPrefixedCssProp('transform');
+			/**
+			 * The default computed transform value should be one of:
+			 * undefined || 'none' || 'matrix()' || 'matrix3d()'
+			 */
+			transform.computed = {
+				raw: computed[transform.property],
+				matrix: parse(computed[transform.property])
+			};
+
+			transformations.unshift(transform.computed.matrix);
+			var product = transformations.reduce(multiply);
+
+			transform.generated = {
+				initial: ((transform.property) + ": matrix3d(" + (product.join(', ')) + ");"),
+				final: ((transform.property) + ": matrix3d(" + (transform.computed.matrix.join(', ')) + ");")
+			};
+		} else {
+			transform.generated = {
+				initial: '',
+				final: ''
+			};
+		}
+
+		/**
+		 * Generate transition styles
+		 */
+		var transition = {};
+		if (opacity.generated || transform.generated.initial) {
+			transition.property = getPrefixedCssProp('transition');
+			transition.computed = computed[transition.property];
+			transition.fragments = [];
+
+			var delay = config.delay;
+			var duration = config.duration;
+			var easing = config.easing;
+
+			if (opacity.generated) {
+				transition.fragments.push({
+					delayed: ("opacity " + (duration / 1000) + "s " + easing + " " + (delay / 1000) + "s"),
+					instant: ("opacity " + (duration / 1000) + "s " + easing + " 0s")
+				});
+			}
+
+			if (transform.generated.initial) {
+				transition.fragments.push({
+					delayed: ((transform.property) + " " + (duration / 1000) + "s " + easing + " " + (delay / 1000) + "s"),
+					instant: ((transform.property) + " " + (duration / 1000) + "s " + easing + " 0s")
+				});
+			}
+
+			/**
+			 * The default computed transition property should be undefined, or one of:
+			 * '' || 'none 0s ease 0s' || 'all 0s ease 0s' || 'all 0s 0s cubic-bezier()'
+			 */
+			var hasCustomTransition =
+				transition.computed && !transition.computed.match(/all 0s|none 0s/);
+
+			if (hasCustomTransition) {
+				transition.fragments.unshift({
+					delayed: transition.computed,
+					instant: transition.computed
+				});
+			}
+
+			var composed = transition.fragments.reduce(
+				function (composition, fragment, i) {
+					composition.delayed += i === 0 ? fragment.delayed : (", " + (fragment.delayed));
+					composition.instant += i === 0 ? fragment.instant : (", " + (fragment.instant));
+					return composition
+				},
+				{
+					delayed: '',
+					instant: ''
+				}
+			);
+
+			transition.generated = {
+				delayed: ((transition.property) + ": " + (composed.delayed) + ";"),
+				instant: ((transition.property) + ": " + (composed.instant) + ";")
+			};
+		} else {
+			transition.generated = {
+				delayed: '',
+				instant: ''
+			};
+		}
+
+		return {
+			inline: inline,
+			opacity: opacity,
+			position: position,
+			transform: transform,
+			transition: transition
+		}
+	}
+
+	function animate(element, force) {
+		if ( force === void 0 ) force = {};
+
+		var pristine = force.pristine || this.pristine;
+		var delayed =
+			element.config.useDelay === 'always' ||
+			(element.config.useDelay === 'onload' && pristine) ||
+			(element.config.useDelay === 'once' && !element.seen);
+
+		var shouldReveal = element.visible && !element.revealed;
+		var shouldReset = !element.visible && element.revealed && element.config.reset;
+
+		if (force.reveal || shouldReveal) {
+			return triggerReveal.call(this, element, delayed)
+		}
+
+		if (force.reset || shouldReset) {
+			return triggerReset.call(this, element)
+		}
+	}
+
+	function triggerReveal(element, delayed) {
+		var styles = [
+			element.styles.inline.generated,
+			element.styles.opacity.computed,
+			element.styles.transform.generated.final
+		];
+		if (delayed) {
+			styles.push(element.styles.transition.generated.delayed);
+		} else {
+			styles.push(element.styles.transition.generated.instant);
+		}
+		element.revealed = element.seen = true;
+		element.node.setAttribute('style', styles.filter(function (s) { return s !== ''; }).join(' '));
+		registerCallbacks.call(this, element, delayed);
+	}
+
+	function triggerReset(element) {
+		var styles = [
+			element.styles.inline.generated,
+			element.styles.opacity.generated,
+			element.styles.transform.generated.initial,
+			element.styles.transition.generated.instant
+		];
+		element.revealed = false;
+		element.node.setAttribute('style', styles.filter(function (s) { return s !== ''; }).join(' '));
+		registerCallbacks.call(this, element);
+	}
+
+	function registerCallbacks(element, isDelayed) {
+		var this$1 = this;
+
+		var duration = isDelayed
+			? element.config.duration + element.config.delay
+			: element.config.duration;
+
+		var beforeCallback = element.revealed
+			? element.config.beforeReveal
+			: element.config.beforeReset;
+
+		var afterCallback = element.revealed
+			? element.config.afterReveal
+			: element.config.afterReset;
+
+		var elapsed = 0;
+		if (element.callbackTimer) {
+			elapsed = Date.now() - element.callbackTimer.start;
+			window.clearTimeout(element.callbackTimer.clock);
+		}
+
+		beforeCallback(element.node);
+
+		element.callbackTimer = {
+			start: Date.now(),
+			clock: window.setTimeout(function () {
+				afterCallback(element.node);
+				element.callbackTimer = null;
+				if (element.revealed && !element.config.reset && element.config.cleanup) {
+					clean.call(this$1, element.node);
+				}
+			}, duration - elapsed)
+		};
+	}
+
+	var nextUniqueId = (function () {
+		var uid = 0;
+		return function () { return uid++; }
+	})();
+
+	function sequence(element, pristine) {
+		if ( pristine === void 0 ) pristine = this.pristine;
+
+		/**
+		 * We first check if the element should reset.
+		 */
+		if (!element.visible && element.revealed && element.config.reset) {
+			return animate.call(this, element, { reset: true })
+		}
+
+		var seq = this.store.sequences[element.sequence.id];
+		var i = element.sequence.index;
+
+		if (seq) {
+			var visible = new SequenceModel(seq, 'visible', this.store);
+			var revealed = new SequenceModel(seq, 'revealed', this.store);
+
+			seq.models = { visible: visible, revealed: revealed };
+
+			/**
+			 * If the sequence has no revealed members,
+			 * then we reveal the first visible element
+			 * within that sequence.
+			 *
+			 * The sequence then cues a recursive call
+			 * in both directions.
+			 */
+			if (!revealed.body.length) {
+				var nextId = seq.members[visible.body[0]];
+				var nextElement = this.store.elements[nextId];
+
+				if (nextElement) {
+					cue.call(this, seq, visible.body[0], -1, pristine);
+					cue.call(this, seq, visible.body[0], +1, pristine);
+					return animate.call(this, nextElement, { reveal: true, pristine: pristine })
+				}
+			}
+
+			/**
+			 * If our element isn’t resetting, we check the
+			 * element sequence index against the head, and
+			 * then the foot of the sequence.
+			 */
+			if (
+				!seq.blocked.head &&
+				i === [].concat( revealed.head ).pop() &&
+				i >= [].concat( visible.body ).shift()
+			) {
+				cue.call(this, seq, i, -1, pristine);
+				return animate.call(this, element, { reveal: true, pristine: pristine })
+			}
+
+			if (
+				!seq.blocked.foot &&
+				i === [].concat( revealed.foot ).shift() &&
+				i <= [].concat( visible.body ).pop()
+			) {
+				cue.call(this, seq, i, +1, pristine);
+				return animate.call(this, element, { reveal: true, pristine: pristine })
+			}
+		}
+	}
+
+	function Sequence(interval) {
+		var i = Math.abs(interval);
+		if (!isNaN(i)) {
+			this.id = nextUniqueId();
+			this.interval = Math.max(i, 16);
+			this.members = [];
+			this.models = {};
+			this.blocked = {
+				head: false,
+				foot: false
+			};
+		} else {
+			throw new RangeError('Invalid sequence interval.')
+		}
+	}
+
+	function SequenceModel(seq, prop, store) {
+		var this$1 = this;
+
+		this.head = [];
+		this.body = [];
+		this.foot = [];
+
+		each(seq.members, function (id, index) {
+			var element = store.elements[id];
+			if (element && element[prop]) {
+				this$1.body.push(index);
+			}
+		});
+
+		if (this.body.length) {
+			each(seq.members, function (id, index) {
+				var element = store.elements[id];
+				if (element && !element[prop]) {
+					if (index < this$1.body[0]) {
+						this$1.head.push(index);
+					} else {
+						this$1.foot.push(index);
+					}
+				}
+			});
+		}
+	}
+
+	function cue(seq, i, direction, pristine) {
+		var this$1 = this;
+
+		var blocked = ['head', null, 'foot'][1 + direction];
+		var nextId = seq.members[i + direction];
+		var nextElement = this.store.elements[nextId];
+
+		seq.blocked[blocked] = true;
+
+		setTimeout(function () {
+			seq.blocked[blocked] = false;
+			if (nextElement) {
+				sequence.call(this$1, nextElement, pristine);
+			}
+		}, seq.interval);
+	}
+
+	function initialize() {
+		var this$1 = this;
+
+		rinse.call(this);
+
+		each(this.store.elements, function (element) {
+			var styles = [element.styles.inline.generated];
+
+			if (element.visible) {
+				styles.push(element.styles.opacity.computed);
+				styles.push(element.styles.transform.generated.final);
+				element.revealed = true;
+			} else {
+				styles.push(element.styles.opacity.generated);
+				styles.push(element.styles.transform.generated.initial);
+				element.revealed = false;
+			}
+
+			element.node.setAttribute('style', styles.filter(function (s) { return s !== ''; }).join(' '));
+		});
+
+		each(this.store.containers, function (container) {
+			var target =
+				container.node === document.documentElement ? window : container.node;
+			target.addEventListener('scroll', this$1.delegate);
+			target.addEventListener('resize', this$1.delegate);
+		});
+
+		/**
+		 * Manually invoke delegate once to capture
+		 * element and container dimensions, container
+		 * scroll position, and trigger any valid reveals
+		 */
+		this.delegate();
+
+		/**
+		 * Wipe any existing `setTimeout` now
+		 * that initialization has completed.
+		 */
+		this.initTimeout = null;
+	}
+
+	function isMobile(agent) {
+		if ( agent === void 0 ) agent = navigator.userAgent;
+
+		return /Android|iPhone|iPad|iPod/i.test(agent)
+	}
+
+	function deepAssign(target) {
+		var sources = [], len = arguments.length - 1;
+		while ( len-- > 0 ) sources[ len ] = arguments[ len + 1 ];
+
+		if (isObject(target)) {
+			each(sources, function (source) {
+				each(source, function (data, key) {
+					if (isObject(data)) {
+						if (!target[key] || !isObject(target[key])) {
+							target[key] = {};
+						}
+						deepAssign(target[key], data);
+					} else {
+						target[key] = data;
+					}
+				});
+			});
+			return target
+		} else {
+			throw new TypeError('Target must be an object literal.')
+		}
+	}
+
+	function reveal(target, options, syncing) {
+		var this$1 = this;
+		if ( options === void 0 ) options = {};
+		if ( syncing === void 0 ) syncing = false;
+
+		var containerBuffer = [];
+		var sequence$$1;
+		var interval = options.interval || defaults.interval;
+
+		try {
+			if (interval) {
+				sequence$$1 = new Sequence(interval);
+			}
+
+			var nodes = tealight(target);
+			if (!nodes.length) {
+				throw new Error('Invalid reveal target.')
+			}
+
+			var elements = nodes.reduce(function (elementBuffer, elementNode) {
+				var element = {};
+				var existingId = elementNode.getAttribute('data-sr-id');
+
+				if (existingId) {
+					deepAssign(element, this$1.store.elements[existingId]);
+
+					/**
+					 * In order to prevent previously generated styles
+					 * from throwing off the new styles, the style tag
+					 * has to be reverted to its pre-reveal state.
+					 */
+					element.node.setAttribute('style', element.styles.inline.computed);
+				} else {
+					element.id = nextUniqueId();
+					element.node = elementNode;
+					element.seen = false;
+					element.revealed = false;
+					element.visible = false;
+				}
+
+				var config = deepAssign({}, element.config || this$1.defaults, options);
+
+				if ((!config.mobile && isMobile()) || (!config.desktop && !isMobile())) {
+					if (existingId) {
+						clean.call(this$1, element);
+					}
+					return elementBuffer // skip elements that are disabled
+				}
+
+				var containerNode = tealight(config.container)[0];
+				if (!containerNode) {
+					throw new Error('Invalid container.')
+				}
+				if (!containerNode.contains(elementNode)) {
+					return elementBuffer // skip elements found outside the container
+				}
+
+				var containerId;
+				{
+					containerId = getContainerId(
+						containerNode,
+						containerBuffer,
+						this$1.store.containers
+					);
+					if (containerId === null) {
+						containerId = nextUniqueId();
+						containerBuffer.push({ id: containerId, node: containerNode });
+					}
+				}
+
+				element.config = config;
+				element.containerId = containerId;
+				element.styles = style(element);
+
+				if (sequence$$1) {
+					element.sequence = {
+						id: sequence$$1.id,
+						index: sequence$$1.members.length
+					};
+					sequence$$1.members.push(element.id);
+				}
+
+				elementBuffer.push(element);
+				return elementBuffer
+			}, []);
+
+			/**
+			 * Modifying the DOM via setAttribute needs to be handled
+			 * separately from reading computed styles in the map above
+			 * for the browser to batch DOM changes (limiting reflows)
+			 */
+			each(elements, function (element) {
+				this$1.store.elements[element.id] = element;
+				element.node.setAttribute('data-sr-id', element.id);
+			});
+		} catch (e) {
+			return logger.call(this, 'Reveal failed.', e.message)
+		}
+
+		/**
+		 * Now that element set-up is complete...
+		 * Let’s commit any container and sequence data we have to the store.
+		 */
+		each(containerBuffer, function (container) {
+			this$1.store.containers[container.id] = {
+				id: container.id,
+				node: container.node
+			};
+		});
+		if (sequence$$1) {
+			this.store.sequences[sequence$$1.id] = sequence$$1;
+		}
+
+		/**
+		 * If reveal wasn't invoked by sync, we want to
+		 * make sure to add this call to the history.
+		 */
+		if (syncing !== true) {
+			this.store.history.push({ target: target, options: options });
+
+			/**
+			 * Push initialization to the event queue, giving
+			 * multiple reveal calls time to be interpreted.
+			 */
+			if (this.initTimeout) {
+				window.clearTimeout(this.initTimeout);
+			}
+			this.initTimeout = window.setTimeout(initialize.bind(this), 0);
+		}
+	}
+
+	function getContainerId(node) {
+		var collections = [], len = arguments.length - 1;
+		while ( len-- > 0 ) collections[ len ] = arguments[ len + 1 ];
+
+		var id = null;
+		each(collections, function (collection) {
+			each(collection, function (container) {
+				if (id === null && container.node === node) {
+					id = container.id;
+				}
+			});
+		});
+		return id
+	}
+
+	/**
+	 * Re-runs the reveal method for each record stored in history,
+	 * for capturing new content asynchronously loaded into the DOM.
+	 */
+	function sync() {
+		var this$1 = this;
+
+		each(this.store.history, function (record) {
+			reveal.call(this$1, record.target, record.options, true);
+		});
+
+		initialize.call(this);
+	}
+
+	var polyfill = function (x) { return (x > 0) - (x < 0) || +x; };
+	var mathSign = Math.sign || polyfill;
+
+	/*! @license miniraf v1.0.1
+
+		Copyright 2018 Fisssion LLC.
+
+		Permission is hereby granted, free of charge, to any person obtaining a copy
+		of this software and associated documentation files (the "Software"), to deal
+		in the Software without restriction, including without limitation the rights
+		to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+		copies of the Software, and to permit persons to whom the Software is
+		furnished to do so, subject to the following conditions:
+
+		The above copyright notice and this permission notice shall be included in all
+		copies or substantial portions of the Software.
+
+		THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+		IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+		FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+		AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+		LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+		OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+		SOFTWARE.
+
+	*/
+	var polyfill$1 = (function () {
+		var clock = Date.now();
+
+		return function (callback) {
+			var currentTime = Date.now();
+			if (currentTime - clock > 16) {
+				clock = currentTime;
+				callback(currentTime);
+			} else {
+				setTimeout(function () { return polyfill$1(callback); }, 0);
+			}
+		}
+	})();
+
+	var miniraf = window.requestAnimationFrame ||
+		window.webkitRequestAnimationFrame ||
+		window.mozRequestAnimationFrame ||
+		polyfill$1;
+
+	function getGeometry(target, isContainer) {
+		/**
+		 * We want to ignore padding and scrollbars for container elements.
+		 * More information here: https://goo.gl/vOZpbz
+		 */
+		var height = isContainer ? target.node.clientHeight : target.node.offsetHeight;
+		var width = isContainer ? target.node.clientWidth : target.node.offsetWidth;
+
+		var offsetTop = 0;
+		var offsetLeft = 0;
+		var node = target.node;
+
+		do {
+			if (!isNaN(node.offsetTop)) {
+				offsetTop += node.offsetTop;
+			}
+			if (!isNaN(node.offsetLeft)) {
+				offsetLeft += node.offsetLeft;
+			}
+			node = node.offsetParent;
+		} while (node)
+
+		return {
+			bounds: {
+				top: offsetTop,
+				right: offsetLeft + width,
+				bottom: offsetTop + height,
+				left: offsetLeft
+			},
+			height: height,
+			width: width
+		}
+	}
+
+	function getScrolled(container) {
+		var top, left;
+		if (container.node === document.documentElement) {
+			top = window.pageYOffset;
+			left = window.pageXOffset;
+		} else {
+			top = container.node.scrollTop;
+			left = container.node.scrollLeft;
+		}
+		return { top: top, left: left }
+	}
+
+	function isElementVisible(element) {
+		if ( element === void 0 ) element = {};
+
+		var container = this.store.containers[element.containerId];
+		if (!container) { return }
+
+		var viewFactor = Math.max(0, Math.min(1, element.config.viewFactor));
+		var viewOffset = element.config.viewOffset;
+
+		var elementBounds = {
+			top: element.geometry.bounds.top + element.geometry.height * viewFactor,
+			right: element.geometry.bounds.right - element.geometry.width * viewFactor,
+			bottom: element.geometry.bounds.bottom - element.geometry.height * viewFactor,
+			left: element.geometry.bounds.left + element.geometry.width * viewFactor
+		};
+
+		var containerBounds = {
+			top: container.geometry.bounds.top + container.scroll.top + viewOffset.top,
+			right: container.geometry.bounds.right + container.scroll.left - viewOffset.right,
+			bottom:
+				container.geometry.bounds.bottom + container.scroll.top - viewOffset.bottom,
+			left: container.geometry.bounds.left + container.scroll.left + viewOffset.left
+		};
+
+		return (
+			(elementBounds.top < containerBounds.bottom &&
+				elementBounds.right > containerBounds.left &&
+				elementBounds.bottom > containerBounds.top &&
+				elementBounds.left < containerBounds.right) ||
+			element.styles.position === 'fixed'
+		)
+	}
+
+	function delegate(
+		event,
+		elements
+	) {
+		var this$1 = this;
+		if ( event === void 0 ) event = { type: 'init' };
+		if ( elements === void 0 ) elements = this.store.elements;
+
+		miniraf(function () {
+			var stale = event.type === 'init' || event.type === 'resize';
+
+			each(this$1.store.containers, function (container) {
+				if (stale) {
+					container.geometry = getGeometry.call(this$1, container, true);
+				}
+				var scroll = getScrolled.call(this$1, container);
+				if (container.scroll) {
+					container.direction = {
+						x: mathSign(scroll.left - container.scroll.left),
+						y: mathSign(scroll.top - container.scroll.top)
+					};
+				}
+				container.scroll = scroll;
+			});
+
+			/**
+			 * Due to how the sequencer is implemented, it’s
+			 * important that we update the state of all
+			 * elements, before any animation logic is
+			 * evaluated (in the second loop below).
+			 */
+			each(elements, function (element) {
+				if (stale || element.geometry === undefined) {
+					element.geometry = getGeometry.call(this$1, element);
+				}
+				element.visible = isElementVisible.call(this$1, element);
+			});
+
+			each(elements, function (element) {
+				if (element.sequence) {
+					sequence.call(this$1, element);
+				} else {
+					animate.call(this$1, element);
+				}
+			});
+
+			this$1.pristine = false;
+		});
+	}
+
+	function isTransformSupported() {
+		var style = document.documentElement.style;
+		return 'transform' in style || 'WebkitTransform' in style
+	}
+
+	function isTransitionSupported() {
+		var style = document.documentElement.style;
+		return 'transition' in style || 'WebkitTransition' in style
+	}
+
+	var version = "4.0.7";
+
+	var boundDelegate;
+	var boundDestroy;
+	var boundReveal;
+	var boundClean;
+	var boundSync;
+	var config;
+	var debug;
+	var instance;
+
+	function ScrollReveal(options) {
+		if ( options === void 0 ) options = {};
+
+		var invokedWithoutNew =
+			typeof this === 'undefined' ||
+			Object.getPrototypeOf(this) !== ScrollReveal.prototype;
+
+		if (invokedWithoutNew) {
+			return new ScrollReveal(options)
+		}
+
+		if (!ScrollReveal.isSupported()) {
+			logger.call(this, 'Instantiation failed.', 'This browser is not supported.');
+			return mount.failure()
+		}
+
+		var buffer;
+		try {
+			buffer = config
+				? deepAssign({}, config, options)
+				: deepAssign({}, defaults, options);
+		} catch (e) {
+			logger.call(this, 'Invalid configuration.', e.message);
+			return mount.failure()
+		}
+
+		try {
+			var container = tealight(buffer.container)[0];
+			if (!container) {
+				throw new Error('Invalid container.')
+			}
+		} catch (e) {
+			logger.call(this, e.message);
+			return mount.failure()
+		}
+
+		config = buffer;
+
+		if ((!config.mobile && isMobile()) || (!config.desktop && !isMobile())) {
+			logger.call(
+				this,
+				'This device is disabled.',
+				("desktop: " + (config.desktop)),
+				("mobile: " + (config.mobile))
+			);
+			return mount.failure()
+		}
+
+		mount.success();
+
+		this.store = {
+			containers: {},
+			elements: {},
+			history: [],
+			sequences: {}
+		};
+
+		this.pristine = true;
+
+		boundDelegate = boundDelegate || delegate.bind(this);
+		boundDestroy = boundDestroy || destroy.bind(this);
+		boundReveal = boundReveal || reveal.bind(this);
+		boundClean = boundClean || clean.bind(this);
+		boundSync = boundSync || sync.bind(this);
+
+		Object.defineProperty(this, 'delegate', { get: function () { return boundDelegate; } });
+		Object.defineProperty(this, 'destroy', { get: function () { return boundDestroy; } });
+		Object.defineProperty(this, 'reveal', { get: function () { return boundReveal; } });
+		Object.defineProperty(this, 'clean', { get: function () { return boundClean; } });
+		Object.defineProperty(this, 'sync', { get: function () { return boundSync; } });
+
+		Object.defineProperty(this, 'defaults', { get: function () { return config; } });
+		Object.defineProperty(this, 'version', { get: function () { return version; } });
+		Object.defineProperty(this, 'noop', { get: function () { return false; } });
+
+		return instance ? instance : (instance = this)
+	}
+
+	ScrollReveal.isSupported = function () { return isTransformSupported() && isTransitionSupported(); };
+
+	Object.defineProperty(ScrollReveal, 'debug', {
+		get: function () { return debug || false; },
+		set: function (value) { return (debug = typeof value === 'boolean' ? value : debug); }
+	});
+
+	ScrollReveal();
+
+	return ScrollReveal;
+
+}));


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[incubator-echarts-www] 02/03: move js file

Posted by ov...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-www.git

commit 05be4f59644fb85dbc7992057f753e90d9f891ae
Author: Ovilia <zw...@gmail.com>
AuthorDate: Fri Jan 8 12:37:38 2021 +0800

    move js file
---
 _jade/zh/index.jade         | 134 +-------------------------------------------
 _scss/_components.page.scss |   2 +-
 js/index.js                 | 126 ++++++++++++++++++++++++++++++++++-------
 3 files changed, 110 insertions(+), 152 deletions(-)

diff --git a/_jade/zh/index.jade b/_jade/zh/index.jade
index f28745f..db9aa34 100644
--- a/_jade/zh/index.jade
+++ b/_jade/zh/index.jade
@@ -19,10 +19,10 @@ block content
                         .home-brand Apache ECharts
                         .home-subtitle 一个基于 JavaScript 的开源可视化图表库
                         .home-btn-panel
-                            a.btn.btn-main.btn-index-home(href='./feature.html')
+                            a.btn.btn-main.btn-index-home(href='./tutorial.html#5%20分钟上手%20ECharts')
                                 include ../components/svg/index-learn
                                 span 快速入门
-                            a.btn.btn-main.btn-index-home(href='./download.html')
+                            a.btn.btn-main.btn-index-home(href='#{hostParam}/examples/zh/index.html')
                                 include ../components/svg/index-example
                                 span 所有示例
                             a.btn.btn-main.btn-index-home.btn-index-github(href='https://github.com/apache/incubator-echarts', target='_blank')
@@ -30,15 +30,6 @@ block content
                                 +svgGithub('#081642')
                     .home-chart
                         img(src="images/index-home-pie.png")
-
-            script(type='text/javascript').
-                (function () {
-                    var ua = navigator.userAgent;
-                    var ie = ua.match(/MSIE\s([\d.]+)/) || ua.match(/Trident\/.+?rv:(([\d.]+))/);
-                    var edge = ua.match(/Edge\/([\d.]+)/);
-                    window.supportTouch = 'ontouchstart' in window && !ie && !edge;
-                })()
-
             section#feature-section
                 .container
                     .index-features
@@ -94,43 +85,6 @@ block content
                                 .index-feature-right
                                     h3.reveal 友好的无障碍访问
                                     p.reveal-later 智能生成的图表描述和贴花图案,帮助视力障碍人士了解图表内容,读懂图表背后的故事。
-
-            script(type='text/javascript').
-                var animationMap = {};
-                function setLottieAnimatiion(id, path) {
-                    var container = id;
-                    if (typeof(id) === 'string') {
-                        container = document.getElementById(id);
-                    }
-
-                    animationMap[id] = lottie.loadAnimation({
-                        container, // the dom element that will contain the animation
-                        renderer: 'svg',
-                        loop: false,
-                        autoplay: true,
-                        path, // the path to the animation json
-                    });
-                }
-                setLottieAnimatiion('icon-1', 'asset/lottie/json/chart.json');
-                setLottieAnimatiion('icon-2', 'asset/lottie/json/fly.json');
-                setLottieAnimatiion('icon-3', 'asset/lottie/json/analysis.json');
-                setLottieAnimatiion('icon-4', 'asset/lottie/json/compatible.json');
-                setLottieAnimatiion('icon-5', 'asset/lottie/json/grown.json');
-                setLottieAnimatiion('icon-6', 'asset/lottie/json/simple.json');
-
-                for(var i = 0; i < 6; i++) {
-                    setLottieAnimatiion('bg-icon-' + (i + 1), 'asset/lottie/json/bg_0'+ (i + 1) + '.json');
-                    (function (i) {
-                        //- setTimeout(function () {
-                            console.log(i, '#index-feature-' + (i + 1), $('#index-feature-' + (i + i)))
-                            $('#index-feature-' + (i + 1)).mouseenter(function () {
-                                console.log('hover' + (i + 1));
-                                animationMap['icon-' + (i + 1)].goToAndPlay(0);
-                            });
-                        //- });
-                    })(i);
-                }
-
             section#publication
                 .container
                     #start-line
@@ -143,67 +97,6 @@ block content
                         .icon
                             #paper-icon
                     #end-line
-
-            script(type='text/javascript').
-                (function () {
-                    var hasStartLineShow = false;
-                    var hasPaperShow = false;
-                    var hasEndLineShow = false;
-
-                    setLottieAnimatiion('paper-icon', 'asset/lottie/json/paper.json');
-
-
-                    $('#page-index').scroll(function () {
-                        var startLine = $("#start-line").offset().top;
-                        var endLine = $("#end-line").offset().top;
-
-                        if (startLine >= $(window).scrollTop() && startLine < ($(window).scrollTop() + $(window).height() - 200)) {
-                            if (!hasStartLineShow) {
-                                $('#publication').css('opacity', 1);
-                                if (animationMap['start-line']) {
-                                    animationMap['start-line'].goToAndPlay(0);
-                                }
-                                else {
-                                    setLottieAnimatiion('start-line', 'asset/lottie/json/start_line.json');
-                                }
-
-                                if (animationMap['paper-icon']) {
-                                    animationMap['paper-icon'].goToAndPlay(0);
-                                }
-                                else {
-                                    setLottieAnimatiion('paper-icon', 'asset/lottie/json/paper.json');
-                                }
-                                hasStartLineShow = true;
-                                hasPaperShow = true;
-                            }
-                        }
-                        else {
-                            if (!hasStartLineShow) {
-                                hasStartLineShow = false;
-                            }
-                        }
-
-                        if (endLine <= 400) {
-                            if (!hasEndLineShow) {
-                                if (animationMap['end-line']) {
-                                    animationMap['end-line'].goToAndPlay(0);
-                                }
-                                else {
-                                    setLottieAnimatiion('end-line', 'asset/lottie/json/end_line.json');
-                                }
-
-                                hasEndLineShow = true;
-                            }
-                        }
-                        else {
-                            if (!hasEndLineShow) {
-                                hasEndLineShow = false;
-                            }
-                        }
-                    });
-
-                })()
-
             section.normal#about-section.reveal-about
                 .container
                     h3 关注我们
@@ -243,32 +136,9 @@ block content
                                         include ../components/svg/twitter
                                         span Twitter
                                     .icon-v-right
-
-            script(type='text/javascript').
-                ScrollReveal().reveal('.reveal', {
-                    container: '#page-index',
-                    delay: 300
-                });
-                ScrollReveal().reveal('.reveal-later', {
-                    container: '#page-index',
-                    delay: 600
-                });
-                ScrollReveal().reveal('.reveal-latest', {
-                    container: '#page-index',
-                    delay: 1200
-                });
-                ScrollReveal().reveal('.reveal-about', {
-                    container: '#page-index',
-                    delay: 600
-                });
-
         include ../components/footer
 
 block extra_js
-    script.
-        window.lazyLoadOptions = {
-            elements_selector: ".lazy"
-        };
     script(src='https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js')
     script(src='#{cdnPayRoot}/#{ecWWWLang}/js/index.js?_v_=#{homeVersion}')
     <script async defer src="https://buttons.github.io/buttons.js"></script>
diff --git a/_scss/_components.page.scss b/_scss/_components.page.scss
index dfea6c1..5b0f2da 100644
--- a/_scss/_components.page.scss
+++ b/_scss/_components.page.scss
@@ -64,7 +64,7 @@ $info-height: 120px;
     line-height: 22px;
 
     h2 {
-        color: $clr-secondary;
+        color: $clr-contrast-dark;
         padding-bottom: 15px;
         border-bottom: 1px solid #ddd;
         margin-top: 40px;
diff --git a/js/index.js b/js/index.js
index 8b59078..419afb8 100644
--- a/js/index.js
+++ b/js/index.js
@@ -1,32 +1,120 @@
+window.lazyLoadOptions = {
+    elements_selector: '.lazy'
+};
+
 (function () {
     if ($('.lower-ie').length) {
         return;
     }
     document.getElementById('nav-index').className = 'active';
-})();
 
-function renderHomepage3TouchDemo(echarts) {
+    var ua = navigator.userAgent;
+    var ie = ua.match(/MSIE\s([\d.]+)/) || ua.match(/Trident\/.+?rv:(([\d.]+))/);
+    var edge = ua.match(/Edge\/([\d.]+)/);
+    window.supportTouch = 'ontouchstart' in window && !ie && !edge;
+
+    initAnimation();
+
+    function initAnimation() {
+        ScrollReveal().reveal('.reveal', {
+            container: '#page-index',
+            delay: 300
+        });
+        ScrollReveal().reveal('.reveal-later', {
+            container: '#page-index',
+            delay: 600
+        });
+        ScrollReveal().reveal('.reveal-latest', {
+            container: '#page-index',
+            delay: 1200
+        });
+        ScrollReveal().reveal('.reveal-about', {
+            container: '#page-index',
+            delay: 600
+        });
+
+        var animationMap = {};
+        function setLottieAnimatiion(id, path) {
+            var container = id;
+            if (typeof id === 'string') {
+                container = document.getElementById(id);
+            }
 
-}
+            animationMap[id] = lottie.loadAnimation({
+                container: container, // the dom element that will contain the animation
+                renderer: 'svg',
+                loop: false,
+                autoplay: true,
+                path: path // the path to the animation json
+            });
+        }
+        setLottieAnimatiion('icon-1', 'asset/lottie/json/chart.json');
+        setLottieAnimatiion('icon-2', 'asset/lottie/json/fly.json');
+        setLottieAnimatiion('icon-3', 'asset/lottie/json/analysis.json');
+        setLottieAnimatiion('icon-4', 'asset/lottie/json/compatible.json');
+        setLottieAnimatiion('icon-5', 'asset/lottie/json/grown.json');
+        setLottieAnimatiion('icon-6', 'asset/lottie/json/simple.json');
 
-function playVideo(id) {
-    var video = document.getElementById(id);
-    video && video.play();
+        for(var i = 0; i < 6; i++) {
+            setLottieAnimatiion('bg-icon-' + (i + 1), 'asset/lottie/json/bg_0'+ (i + 1) + '.json');
+            (function (i) {
+                $('#index-feature-' + (i + 1)).mouseenter(function () {
+                    animationMap['icon-' + (i + 1)].goToAndPlay(0);
+                });
+            })(i);
+        }
 
-    var playBtn = document.getElementById(id + '-play');
-    playBtn && (playBtn.style.display = 'none');
+        var hasStartLineShow = false;
+        var hasEndLineShow = false;
 
-    var pauseBtn = document.getElementById(id + '-pause');
-    pauseBtn && (pauseBtn.style.display = 'block');
-}
+        setLottieAnimatiion('paper-icon', 'asset/lottie/json/paper.json');
 
-function pauseVideo(id) {
-    var video = document.getElementById(id);
-    video && video.pause();
+        $('#page-index').scroll(function () {
+            var startLine = $("#start-line").offset().top;
+            var endLine = $("#end-line").offset().top;
 
-    var playBtn = document.getElementById(id + '-play');
-    playBtn && (playBtn.style.display = 'block');
+            if (startLine >= $(window).scrollTop() && startLine < ($(window).scrollTop() + $(window).height() - 200)) {
+                if (!hasStartLineShow) {
+                    $('#publication').css('opacity', 1);
+                    if (animationMap['start-line']) {
+                        animationMap['start-line'].goToAndPlay(0);
+                    }
+                    else {
+                        setLottieAnimatiion('start-line', 'asset/lottie/json/start_line.json');
+                    }
 
-    var pauseBtn = document.getElementById(id + '-pause');
-    pauseBtn && (pauseBtn.style.display = 'none');
-}
+                    if (animationMap['paper-icon']) {
+                        animationMap['paper-icon'].goToAndPlay(0);
+                    }
+                    else {
+                        setLottieAnimatiion('paper-icon', 'asset/lottie/json/paper.json');
+                    }
+                    hasStartLineShow = true;
+                }
+            }
+            else {
+                if (!hasStartLineShow) {
+                    hasStartLineShow = false;
+                }
+            }
+
+            if (endLine <= 400) {
+                if (!hasEndLineShow) {
+                    if (animationMap['end-line']) {
+                        animationMap['end-line'].goToAndPlay(0);
+                    }
+                    else {
+                        setLottieAnimatiion('end-line', 'asset/lottie/json/end_line.json');
+                    }
+
+                    hasEndLineShow = true;
+                }
+            }
+            else {
+                if (!hasEndLineShow) {
+                    hasEndLineShow = false;
+                }
+            }
+        });
+    }
+})();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[incubator-echarts-www] 03/03: Merge branch 'next' of github.com:ecomfe/echarts-www into next

Posted by ov...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-www.git

commit c51585f9c15e59b6ad31e083f11c954e98d616f1
Merge: 05be4f5 d591b38
Author: Ovilia <zw...@gmail.com>
AuthorDate: Fri Jan 8 12:38:12 2021 +0800

    Merge branch 'next' of github.com:ecomfe/echarts-www into next

 _jade/components/nav-mixin.jade                    | 13 -------
 _jade/en/nav-mixin.jade                            | 13 -------
 _jade/{next => }/examples/editor.jade              |  2 +-
 _jade/{next => }/examples/en/_variablesLang.jade   |  0
 _jade/{next => }/examples/en/editor.jade           |  2 +-
 _jade/{next => }/examples/en/index.jade            |  2 +-
 _jade/{next => }/examples/en/view.jade             |  2 +-
 _jade/{next => }/examples/index.jade               |  2 +-
 _jade/{next => }/examples/view.jade                |  2 +-
 _jade/{next => }/examples/zh/editor.jade           |  2 +-
 _jade/{next => }/examples/zh/index.jade            |  2 +-
 _jade/{next => }/examples/zh/view.jade             |  2 +-
 _jade/layouts/doc.jade                             | 17 ---------
 .../{next-redirect.jade => example-redirect.jade}  |  2 +-
 ...ext-example-simple.jade => example-simple.jade} |  6 ++--
 _jade/layouts/{next-example.jade => example.jade}  |  7 ++--
 _jade/layouts/next-doc.jade                        | 42 ----------------------
 _jade/layouts/next-example-redirect.jade           | 15 --------
 _jade/next/api.jade                                |  4 ---
 _jade/next/en/api.jade                             | 16 ---------
 _jade/next/en/option-gl.jade                       | 16 ---------
 _jade/next/en/option.jade                          | 16 ---------
 _jade/next/en/tutorial.jade                        | 16 ---------
 _jade/next/option-gl.jade                          |  4 ---
 _jade/next/option.jade                             |  4 ---
 _jade/next/tutorial.jade                           |  4 ---
 _jade/next/zh/api.jade                             | 13 -------
 _jade/next/zh/option-gl.jade                       | 13 -------
 _jade/next/zh/option.jade                          | 13 -------
 _jade/next/zh/tutorial.jade                        | 13 -------
 _jade/zh/examples.jade                             | 38 --------------------
 _scss/_components.nav.scss                         |  3 +-
 bin/build.js                                       |  4 +--
 bin/release.sh                                     | 34 ++----------------
 config/env.asf.js                                  |  3 +-
 config/env.dev.js                                  |  3 +-
 config/env.localsite.js                            |  5 ++-
 37 files changed, 24 insertions(+), 331 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org