Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Framework Basics Prototyping with Foundation Building a JavaScript Dropdown Menu and Orbit Slider

Orbit doesn't work anymore

Orbit has been deprecated, meaning that it is no longer supported. There's no need to worry though as we decided to leave it in Foundation if you choose to continue using it. We explain it here.

Is there another option I can use and an explanation?

EDIT: I tried Owl Corousel but it seems it doesn't work with text.. Here is my code.

<!doctype html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Qax | Web Designer &amp; Developer</title>
    <script type="text/javascript" src="/ruxitagentjs_2bnr_1005700480009606.js" data-dtconfig="rid=RID_-756830459|rpid=-1670638010|domain=|reportUrl=/dynaTraceMonitor|tp=500,50,0|bandwidth=300"></script><link rel="stylesheet" href="css/normalize.css" />
    <link rel="stylesheet" href="css/foundation.css" />
    <link rel="stylesheet" href="css/my-style.css" />
    <link rel="stylesheet" href="css/owl.theme.css" />
    <link rel="stylesheet" href="css/owl.carousel.css" />
    <link rel="stylesheet" href="css/owl.transition.css" />

  </head>
  <body>

   <!--  Top Bar -->
    <div class="contain-to-grid fixed">
      <nav class="top-bar">
        <ul class="title-area">
          <li class="name">
            <h1>
            <a href="#">Qax</a>
            </h1>
          </li>

          <li class="toggle-topbar menu-icon">
            <a href="#"><span></span></a>
          </li>  

          </ul>
          <section class="top-bar-section">
            <ul class="right">

                <li><a href="#">Home</a></li>
                <li><a href="#">About</a></li>
                <li class="has-dropdown">
                  <a href="#">Projects</a>
                  <ul class="dropdown">
                      <li class="divider"><a href="#">eSouq Bahrain</a></li>
                      <li class="divider"><a href="#">9arab</a></li>
                      <li class="divider"><a href="#">Signals from Mars</a></li>
                      <li class="divider"><a href="#">Upcoming Projects</a></li>
                  </ul>
                </li>
                <li><a href="#">Conact</a></li>

            </ul>
          </section>
      </nav>
    </div>


  <!--     End Top Bar -->

  <!-- Content Slider -->
  <div class="row">
    <div id="slider" class="large-12 columns owl-carousel owl-theme"  >
      <div>
      <h1>eSouq Bahrain</h1>  
      <p class="lead">Sell whatever you want locally in Bahrain without even spending a fils!</p>
      <p class="button-group radius ">
        <a class="button success" href="#">Visit eSouq Bahrain</a>
        <a class="button" href="#">Download the Android app</a>
      </p>
    </div>
    <div>
          <h1>Learn how to build it for iOS</h1>
          <p class="lead">We'll teach you how to build it from scratch!</p>
          <p><a class="medium button radius" href="#">Get started today!</a>   
        </div>
        <div>
          <h1>Learn how to build it for Android</h1>
          <p class="lead">We'll teach you how to build it from scratch!</p>
          <p><a class="medium button radius" href="#">Get started today!</a></p> 
        </div>
      </div>
    </div>
  </div>
  </div>


  <!-- End Content Slider -->

  <script>
      document.write('<script src=' +
      ('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') +
      '.js><\/script>')
    </script>
    <script src="js/foundation.min.js"></script>
    <script>
      $(document).foundation();
    </script>  
    <script src="js/owl.carousel.min.js"></script>
    <script>
        $(document).ready(function() {

        $("slider").owlCarousel({

        navigation : true, // Show next and prev buttons
        slideSpeed : 300,
        paginationSpeed : 400,
        singleItem:true

        // "singleItem:true" is a shortcut for:
        // items : 1, 
        // itemsDesktop : false,
        // itemsDesktopSmall : false,
        // itemsTablet: false,
        // itemsMobile : false

          });

        });
    </script>
  </body>
</html>

2 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Qasim;

There are several other slider alternatives, some are mentioned on the blog post on Zurb's site explaining their decision on the depreciation of the Orbit Slider.

Ken

I have tried Owl Carousel but it seems it doesn't work with text for some reason..

Whoa, that's news to me.

As Ken has said, the Foundation guys have suggested a couple other carousels, including Slick and the aforementioned Owl. I've heard good things about Slick. I personally use SlidesJS and love it.