Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Slides not sliding, just stacking.

  • This topic is empty.
Viewing 14 posts - 16 through 29 (of 29 total)
  • Author
    Posts
  • #95584
    Mottie
    Member

    I still don’t see an anytingslider.css file. Also setting the slideshow with “playRtl” set to true, does more than just switch the slideshow direction – it messes around with the page rtl (right-to-left) settings for languages that are read from right-to-left. So, you should set that to false.

    #95588
    dj_hiking
    Member

    here is my css. it is in the style.css file…

    #slide2 {
    float:left;
    z-index: 99;
    margin-left: -18px;
    }
    #homeslider {
    margin: 20px;
    border: 8px solid #FFF;
    position: absolute;
    height: 400px;
    width: 600px;
    background-color: #CCC;
    box-shadow: 0 0 3px #888888;
    }
    #slidershadow {
    height: 455px;
    width: 655px;
    background-image: url(images/featured-curved-shadow.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    position: absolute;
    }
    #95589
    dj_hiking
    Member

    I also changed the setting to false on right to left.

    #95592
    Mottie
    Member

    Here is the stylesheet you are still missing: https://github.com/ProLoser/AnythingSlider/blob/master/css/anythingslider.css

    /*
    AnythingSlider v1.7+ Default (base) theme
    By Chris Coyier: https://css-tricks.com
    with major improvements by Doug Neiner: http://pixelgraphics.us/
    based on work by Remy Sharp: http://jqueryfordesigners.com/
    */

    /*****************************
    SET DEFAULT DIMENSIONS HERE
    *****************************/
    /* change the ID to match your slider */
    #slider {
    width: 700px;
    height: 390px;
    list-style: none;
    /* Prevent FOUC (see FAQ page) and keep things readable if javascript is disabled */
    overflow-y: auto;
    overflow-x: hidden;
    }

    /*****************
    SET COLORS HERE
    *****************/
    /**** Default state (no keyboard focus) ****/
    /* slider window - top & bottom borders, default state */
    div.anythingSlider .anythingWindow {
    border-top: 3px solid #777;
    border-bottom: 3px solid #777;
    }
    /* Navigation buttons, default state */
    div.anythingSlider .anythingControls ul a.cur, div.anythingSlider .anythingControls ul a {
    background: #777;
    color: #000;
    }
    /* start-stop button, stopped, default state */
    div.anythingSlider .start-stop {
    background-color: #040;
    color: #fff;
    }
    /* start-stop button, playing, default state */
    div.anythingSlider .start-stop.playing {
    background-color: #800;
    }
    /* start-stop button, default hovered text color (when visible) */
    div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover {
    color: #ddd;
    }

    /**** Active State (slider has keyboard focus) ****/
    /* slider window - top & bottom borders, active state */
    div.anythingSlider.activeSlider .anythingWindow {
    border-color: #7C9127;
    }
    /* Navigation buttons, active state */
    div.anythingSlider.activeSlider .anythingControls ul a.cur, div.anythingSlider.activeSlider .anythingControls ul a {
    background-color: #7C9127;
    }
    /* start-stop button, stopped, active state */
    div.anythingSlider .start-stop {
    background-color: #080;
    color: #fff;
    }
    /* start-stop button, playing, active state */
    div.anythingSlider .start-stop.playing {
    background-color: #d00;
    }
    /* start-stop button, active slider hovered text color (when visible) */
    div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover {
    color: #fff;
    }

    /***********************
    COMMON SLIDER STYLING
    ***********************/
    /* Overall Wrapper: 45px right & left padding for the arrows, 28px @ bottom for navigation */
    div.anythingSlider {
    display: block;
    margin: 0 auto;
    overflow: visible !important; /* needed for Opera and Safari */
    position: relative;
    padding: 0 45px 28px 45px;
    }
    /* anythingSlider viewport window */
    div.anythingSlider .anythingWindow {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    }
    /* anythingSlider base (original element) */
    .anythingBase {
    background: transparent;
    list-style: none;
    position: absolute;
    overflow: visible !important;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    }
    /* all panels inside the slider */
    .anythingBase .panel {
    background: transparent;
    display: block;
    overflow: hidden;
    float: left;
    padding: 0;
    margin: 0;
    }
    .anythingBase .panel.vertical {
    float: none;
    }

    /* Navigation Arrows */
    div.anythingSlider .arrow {
    top: 50%;
    position: absolute;
    display: block;
    }
    div.anythingSlider .arrow a {
    display: block;
    height: 140px;
    margin: -70px 0 0 0; /* half height of image */
    width: 45px;
    text-align: center;
    outline: 0;
    background: url(../images/default.png) no-repeat;
    }
    /* hide text, target the span so IE7 doesn't text-indent the link */
    div.anythingSlider .arrow a span { display: block; visibility: hidden; }
    /* back arrow */
    div.anythingSlider .back { left: 0; }
    div.anythingSlider .back a { background-position: left top; }
    div.anythingSlider .back a:hover, div.anythingSlider .back a.hover { background-position: left -140px; }
    div.anythingSlider .back.disabled { display: none; } /* disabled arrows, hide or reduce opacity: opacity: .5; filter: alpha(opacity=50); */
    /* forward arrow */
    div.anythingSlider .forward { right: 0; }
    div.anythingSlider .forward a { background-position: right top; }
    div.anythingSlider .forward a:hover, div.anythingSlider .forward a.hover { background-position: right -140px; }
    div.anythingSlider .forward.disabled { display: none; } /* disabled arrows, hide or reduce opacity: opacity: .5; filter: alpha(opacity=50); */

    /* Navigation Links */
    div.anythingSlider .anythingControls { outline: 0; display: none; }
    div.anythingSlider .anythingControls ul { margin: 0; padding: 0; float: left; }
    div.anythingSlider .anythingControls ul li { display: inline; }
    div.anythingSlider .anythingControls ul a {
    font: 11px/18px Georgia, Serif;
    display: inline-block;
    text-decoration: none;
    padding: 2px 8px;
    height: 18px;
    margin: 0 5px 0 0;
    background-image: url(../images/default.png);
    background-position: center -288px ;
    background-repeat: repeat-x;
    text-align: center;
    outline: 0;
    border-radius: 0 0 5px 5px;
    -moz-border-radius: 0 0 5px 5px;
    -webkit-border-radius: 0 0 5px 5px;
    }
    div.anythingSlider .anythingControls ul a:hover {
    background-image: none;
    }
    /* Navigation size window */
    div.anythingSlider .anythingControls .anythingNavWindow { overflow: hidden; float: left; }

    /* slider autoplay right-to-left, reverse order of nav links to look better */
    div.anythingSlider.rtl .anythingControls ul a { float: right; } /* reverse order of nav links */
    div.anythingSlider.rtl .anythingControls ul { float: left; } /* move nav link group to left */
    div.anythingSlider.rtl .anythingWindow {
    direction: ltr;
    unicode-bidi: bidi-override;
    }
    /* div.anythingSlider.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */

    /* Autoplay Start/Stop button */
    div.anythingSlider .start-stop {
    background-image: url(../images/default.png);
    background-position: center -288px;
    background-repeat: repeat-x;
    padding: 2px 5px;
    width: 40px;
    text-align: center;
    text-decoration: none;
    float: right;
    z-index: 100;
    outline: 0;
    border-radius: 0 0 5px 5px;
    -moz-border-radius: 0 0 5px 5px;
    -webkit-border-radius: 0 0 5px 5px;
    }
    /* hide cell shading on hover - makes the button appear to come forward */
    div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover { background-image: none; }

    /* probably not necessary, but added just in case */
    div.anythingSlider, div.anythingSlider .anythingWindow, div.anythingSlider .anythingControls ul a, div.anythingSlider .arrow a, div.anythingSlider .start-stop {
    transition-duration: 0;
    -o-transition-duration: 0;
    -moz-transition-duration: 0;
    -webkit-transition-duration: 0;
    }
    #95707
    dj_hiking
    Member

    I added the above css to the style.css – previously I was just adding it to the anythingslider.css, because adding it to style.css didn’t make any changes. It is now working… However, when I go into the Anything Slider plugin settings and make any changes the slider stops working. I can get it to work again by deactivation the plugin and reactivating it. but I can’t style, add/subtract nav, etc. or it breaks. I tried installing another slider (easing slider) as a test and it also did not work correctly. There appears to be some offending code somewhere on the back end that conflicts with the jquery code.

    #95708
    dj_hiking
    Member

    It is working. I just need to make all the style settings in the php instead of the Anything Slider plugin settings. Thanks for all your help Mottie. Hopefully the client will just let us rebuild the site from scratch soon so we don’t have to deal with all the leftover code that obviously is the problem. Thanks again.

    #96502
    daithi
    Member

    Hello,
    I’m having a similar problem. I’m trying to use Dreamweaver CS5 to create & edit a WordPress site. I have WAMP installed on my computer. The homepage slider is stacking the photos instead of sliding them. I’ve tried 3 different WordPress themes but I get the stacking problem which ever theme I use. The strange thing is, when I preview the site in Dreamweaver using “live view” (WebKit browser) it displays properly. But with every other browser (IE, Firefox, Chrome, Opera) I get the stacking problem. Sorry I can’t give a link to the site but it’s not online at this point. I’m working with a fresh install of WordPress with no plugins. I’m pretty much a novice with all this stuff. Anyone have an idea what the problem might be?
    Below is a copy of my featured.php file:



    #96504
    daithi
    Member

    This is what I get in the Firefox error console:

    Error: missing } after function body
    Source File: http://wp_1/wp-includes/js/jquery/jquery.js?ver=1.7.1
    Line: 5, Column: 28300

    Error: jQuery is not defined
    Source File: http://wp_1/wp-content/themes/DeepFocus/epanel/shortcodes/js/et_shortcodes_frontend.js?ver=2.0
    Line: 245

    and a bunch more “jQuery is not defined”

    #96513
    Mottie
    Member

    HI daithi!

    I’ll need to see the javascript contained in the head section of your page to be 100% sure, but it sounds like you’re just missing a bracket. Make sure the opening and closing brackets match up. So when you initialize the slider, it should be wrapped and the options should have matching brackets like this:

    // document ready - opening ( and {
    $(function(){
    $('#slider').anythingSlider({ // initialization options - opening ( and {
    // bunch o' options here
    }); // slider options - closing } and ) - the order is reversed here
    }); // document ready - closing } and } - reversed order (curly bracket then parenthesis)

    If that doesn’t solve the “jQuery is not defined” issue then you might be using another library like Prototype? If that is the case, then make sure you include jQuery no conflict mode:



    But now instead of using “$” in the code above, use “jQuery” in it’s place.

    #110465
    silverliebt
    Participant

    Mottie: I’m wondering if you could look at my similar issue (slides stacking not sliding).
    Background: On our old server (media temple dv 3.5) it is working great:
    http://205.186.143.51/slideshows/branding.php

    On the new server I get the stacking issue:
    http://64.207.157.17/slideshows/branding.php

    Both are LAMP setups. I’m at a loss re. why anythingslider w/out any code changes works at one and not the other.

    #110498
    Mottie
    Member

    Hi @silverliebt!

    The anythingslider.js file is missing:

    > http://64.207.157.17/js/anythingslider/js/jquery.anythingslider.js 404 (Not Found)

    Everything else looks okay :)

    #110529
    silverliebt
    Participant

    Thanks Mottie, that did the trick. Really appreciate the help.

    #111150
    ddshiva
    Member

    Hello all,
    I’m using slides on my site that works in firefox. I’m having trouble running the slideshow in Chrome browser and couldn’t hide play buttons. . The site URL is

    https://docs.google.com/document/d/15U4nfriIwJfAOssDKETKukDMiHsBIvNvxsBxwoQdP1Q/edit

    Any help is greatly appreciated.

    #111182
    Mottie
    Member

    Hi @ddshiva. The google docs you shared only contains css. Could you share a live demo or more of your code?

    And actually, this thread is more in reference of the AnythingSlider plugin, so starting a new thread would probably get more people to look at it and try to help.

Viewing 14 posts - 16 through 29 (of 29 total)
  • The forum ‘CSS’ is closed to new topics and replies.