I want to create testimonial slider like this one https://codepen.io/pillotu/pen/weWzLE/ but it seems to be impossible to make its js work in the visual composer "raw js" content box.
jQuery(document).ready(function($) {
//create the slider
$('.cd-testimonials-wrapper').flexslider({
selector: ".cd-testimonials > li",
animation: "slide",
controlNav: true,
slideshow: false,
smoothHeight: true,
start: function() {
$('.cd-testimonials').children('li').css({
'opacity': 1,
'position': 'relative'
});
}
});
});
I've tried many ways I saw in the internet, like using w3schools and jsfiddle, but nothing helped.
PLEASE HELP