finished comment integration, it should be working now
This commit is contained in:
10
public/js/comments.js
Normal file
10
public/js/comments.js
Normal file
@@ -0,0 +1,10 @@
|
||||
jQuery( document ).ready( function( $ ) {
|
||||
const wrapper = $('.pexpo-core-comment-groups-wrapper').first();
|
||||
const group = wrapper.find('.pexpo-core-comment-group').first();
|
||||
|
||||
let childrenCount = group.children().length;
|
||||
|
||||
if (childrenCount > 3) {
|
||||
wrapper.css('animation', 'scrolling ' + group.children().length * 5 + 's linear infinite');
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user