mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 01:45:51 +01:00
Feature: Implements FadeIn and Fadeout for specified pin
This commit is contained in:
committed by
Isaac Bythewood
parent
6318500594
commit
01bac724d6
@@ -6,6 +6,20 @@ function fetchPins(offset) {
|
||||
return axios.get(apiUrl)
|
||||
}
|
||||
|
||||
Vue.component('pin', {
|
||||
data: function () {
|
||||
return {'loaded': false}
|
||||
},
|
||||
props: ['pin'],
|
||||
template: '#pin-template',
|
||||
methods: {
|
||||
onImageLoad: function () {
|
||||
this.loaded = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var app = new Vue({
|
||||
el: '#app',
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user