I am trying to construct a variable like the following:
var feed = new Instafeed({
get: 'tagged',
tagName: 'Breakfast',
clientId: 'bff2c0f300c841a298a9198e499eee16',
limit: 50,
target:'instagramFeedBottom',
template: '<li class="panel"><a href="{{link}}"><img class="front card" src="{{image}}" /></a><a href="{{link}}"><div class="back card"><p>{{model.user.full_name}}</p></div></a></li>',
after: function() {
RandomImg();
},
resolution: 'low_resolution'
});
$('.front').on({
mouseenter: function () {
var x = $(this).parent().parent();
console.log(x + $('.back'));
}
// mouseleave: function () {
// $(this).fadeIn(medium);
// }
});
I am having the following error in the console: [object Object][object Object]. I need to access the '.back' based on the '.front'.parent().parent()
console.log(x.find('.back'));