Removed jQuery and D3 dependencies.
This commit is contained in:
@@ -363,27 +363,27 @@ You can grab the blue circle with touches or mouse and drag it around.</p>
|
||||
const to = {scale: 1.3, transformOrigin: 'center', repeat: 1, yoyo: true}
|
||||
|
||||
InteractionMapper.on('tap', document.getElementById('hammer-1'), event => {
|
||||
TweenMax.fromTo(event.target, .2, from, to)
|
||||
TweenLite.fromTo(event.target, .2, from, to)
|
||||
})
|
||||
|
||||
InteractionMapper.on('press', document.getElementById('hammer-2'), event => {
|
||||
TweenMax.fromTo(event.target, .2, from, to)
|
||||
TweenLite.fromTo(event.target, .2, from, to)
|
||||
}, {time: 1000})
|
||||
|
||||
InteractionMapper.on('panright pandown', document.getElementById('hammer-3'), event => {
|
||||
TweenMax.fromTo(event.target, .2, from, to)
|
||||
TweenLite.fromTo(event.target, .2, from, to)
|
||||
})
|
||||
|
||||
InteractionMapper.on(['swipeleft', 'swipedown'], document.getElementsByTagName('ellipse'), event => {
|
||||
TweenMax.fromTo(event.target, .2, from, to)
|
||||
TweenLite.fromTo(event.target, .2, from, to)
|
||||
})
|
||||
|
||||
InteractionMapper
|
||||
.on('pinch', document.getElementById('hammer-5'), event => {
|
||||
TweenMax.fromTo(event.target, .2, from, to)
|
||||
TweenLite.fromTo(event.target, .2, from, to)
|
||||
})
|
||||
.on('rotate', document.querySelectorAll('svg g > path.star'), event => {
|
||||
TweenMax.fromTo(event.target, .2, from, to)
|
||||
TweenLite.fromTo(event.target, .2, from, to)
|
||||
})
|
||||
.on('click', document.getElementById('hammer-1'), event => {
|
||||
console.log(event)
|
||||
|
||||
Reference in New Issue
Block a user