Skip to content

Commit 4041b70

Browse files
feat: horizon callback now returns animated element
1 parent 4c0273a commit 4041b70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "timbercss",
3-
"version": "0.1.79",
3+
"version": "0.1.80",
44
"author": "UnlimitDesign",
55
"description": "A CSS Framework for Rapid Website Prototyping",
66
"keywords": [],

src/js/plugins/_tm.horizon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright © UnlimitDesign 2019
22
// Plugin: Horizon
3-
// Version: 1.0.0
3+
// Version: 1.0.1
44
// URL: @UnlimitDesign
55
// Author: UnlimitDesign, Christian Lundgren, Shu Miyao
66
// Description: Detect when elements enter and/or leave viewport
@@ -135,7 +135,7 @@ const tmHorizon = (function () {
135135
if(event.target != element) return false;
136136

137137
// Callback
138-
plugin.settings.elementVisible();
138+
plugin.settings.elementVisible(event.target);
139139
});
140140
};
141141

0 commit comments

Comments
 (0)