javascript - Images dont slide in orbit slider Foundation -
i'm trying add foundation orbit slider web page. looks easy , i've got see images , prev & next buttons, if click on prev , next buttons orbit slider doesn't move @ all. images doesn't slide , don't know why, beacuse i've seen many examples , think code looks same. woud appreciated
<html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="altiria webapp"> <link rel="stylesheet" href="assets/css/foundation.min.css"> <link rel="stylesheet" href="assets/css/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="assets/css/jquery-ui.css"> <link rel="stylesheet" href="assets/css/jquery-ui.structure.css"> <link rel="stylesheet" href="assets/css/jquery-ui.theme.css"> <link rel="stylesheet" href="assets/css/app.css"> <script src="assets/js/modernizr.js"></script> <script src="assets/js/jquery.js"></script> <script src="assets/js/jquery-ui.js"></script> <script src="assets/js/foundation.min.js"></script> </head> <body> <div class="orbit-container"> <ul class="example-orbit" data-orbit> <li> <img src="assets/images/paisaje1.jpg" alt="slide 1" /> <div class="orbit-caption"> caption one. </div> </li> <li class="active"> <img src="assets/images/paisaje2.jpg" alt="slide 2" /> <div class="orbit-caption"> caption two. </div> </li> <li> <img src="assets/images/paisaje3.jpg" alt="slide 3" /> <div class="orbit-caption"> caption three. </div> </li> </ul> <!-- navigation arrows --> <a href="#" class="orbit-prev">prev <span></span></a> <a href="#" class="orbit-next">next <span></span></a> <!-- slide numbers --> <div class="orbit-slide-number"> <span>1</span> of <span>3</span> </div> <!-- timer , play/pause button --> <div class="orbit-timer"> <span></span> <div class="orbit-progress"></div> </div> </div> <!-- bullets --> <ol class="orbit-bullets"> <li data-orbit-slide-number="1"></li> <li data-orbit-slide-number="2" class="active"></li> <li data-orbit-slide-number="3"></li> </ol> <script> $(document).foundation(); </script> </body>
it looks have mix of pre-rendered html , rendered html on page. don't need chunks of code labeled comments (navigation arrows, slide numbers, timer, bullets, etc); foundation render them you.
in addition, it's possible class="example-orbit"
interfering and, unless need it, i'd suggest removing it.
important note: according foundation website, "orbit has been deprecated, meaning no longer supported." officially recommend using different image slider instead of orbit.
Comments
Post a Comment