Skip to content

Commit

Permalink
add in canvas_lines and canvas_sphere to background animation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjandxa committed Apr 15, 2017
1 parent e2c0e5f commit 763c37f
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 2 deletions.
19 changes: 18 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,15 @@ fancybox: true
# Canvas-nest
canvas_nest: false

#three_waves
# three_waves
three_waves: false

# canvas_lines
canvas_lines: false

# canvas_sphere
canvas_sphere: false

# Only fit scheme Pisces
# Canvas-ribbon
canvas_ribbon: false
Expand Down Expand Up @@ -539,8 +545,19 @@ vendors:

# three
three:

# three_waves
# https://github.com/jjandxa/three_waves
three_waves:

# three_waves
# https://github.com/jjandxa/canvas_lines
canvas_lines:

# three_waves
# https://github.com/jjandxa/canvas_sphere
canvas_sphere:

# Internal version: 1.0.0
# https://github.com/zproo/canvas-ribbon
canvas_ribbon:
Expand Down
10 changes: 10 additions & 0 deletions layout/_scripts/vendors.swig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
{% set js_vendors.three_waves = 'three/three-waves.min.js' %}
{% endif %}

{% if theme.canvas_lines %}
{% set js_vendors.three = 'three/three.min.js' %}
{% set js_vendors.canvas_lines = 'three/canvas_lines.min.js' %}
{% endif %}

{% if theme.canvas_sphere %}
{% set js_vendors.three = 'three/three.min.js' %}
{% set js_vendors.canvas_sphere = 'three/canvas_sphere.min.js' %}
{% endif %}

{% if theme.canvas_ribbon and theme.scheme === 'Pisces'%}
{% set js_vendors.canvas_ribbon = 'canvas-ribbon/canvas-ribbon.js' %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion source/css/_variables/base.styl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ $headband-bg = $black-deep
// Variables for header section elements.
// --------------------------------------------------

$head-bg = white
$head-bg = transparent

// Site Meta
$site-meta-text-align = center
Expand Down
Loading

0 comments on commit 763c37f

Please sign in to comment.