Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class='slidernivo'>
<div class='recent-slider' data-label='سلايد شو'/>
</div>
 <center>
<div class="R_DOWNLOAD_BUTTON_RED" style="text-align: center;">
<a href="//io.mo3awin.com/2018/06/auto-slider-to-display-posts-by-labels.html" target="_blank">عودة للتدوينة</a>
</div>
  </center>
              
            
!

CSS

              
                .R_DOWNLOAD_BUTTON_RED a:link{
text-decoration:none;
z-index:999;
font:normal normal 14px Droid Arabic Naskh,sans-serif;}
.R_DOWNLOAD_BUTTON_RED a{
background:#444ff1;
display: inline-block;
position: relative;
margin: 0 auto;
padding:10px 20px;
color: #fff;
transition: all 0.4s ease;
z-index: 999;
}
body {
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: Quicksand, sans-serif;
}

.slidernivo {}
/* The Nivo Slider styles */
.recent-slider{
width:700px;
margin:5% auto;
padding-left:5px;
padding-right:1px;
padding:5px;
background:#FFF;
text-shadow:0 1px 0 rgba(0,0,0,0.15);
}
.nivoSlider {
position:relative;
      z-index: 99999;
width:100%;
height:300px;
overflow: hidden;
text-align:Center;
}
.nivoSlider img {
position:absolute;
top:0px;
left:0px;
max-width: none;
height:300px !important;
}
.top-l-slider .nivoSlider {
position:relative;
width:100%;
height:400px;
overflow: hidden;
text-align:Center;
}
.top-l-slider .nivoSlider img {
position:absolute;
top:0px;
left:0px;
max-width: none;
height:400px !important;
}
.nivo-main-image {
display: block !important;
position: relative !important;
width: 100% !important;
}
.nivoSlider a.nivo-imageLink {
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;
border:0;
padding:0;
margin:0;
z-index:6;
display:none;
background:white;
filter:alpha(opacity=0);
opacity:0;
}
.nivo-slice {
display:block;
position:absolute;
z-index:5;
height:100%;
top:0;
}
.nivo-box {
display:block;
position:absolute;
z-index:5;
overflow:hidden;
}
.nivo-box img { display:block; }
/* Caption styles */
.nivo-caption {
position:absolute;
bottom:10px;
left:5%;
display:block;
width:90%;
text-align:center;
font:400 26px Droid Arabic Kufi;
z-index:8;
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box;    /* Firefox, other Gecko */
box-sizing: border-box;         /* Opera/IE 8+ */
color:#fff;
}
.nivo-caption p {
text-align: Center;
font: 400 13px Droid Arabic Kufi;
margin: 10px 20px;
padding: 10px;
display: inline-block;
border-radius: 4px;
background: rgba(34, 34, 34, 0.83);
line-height: 21px;
}
.nivo-caption a{
color:#fff;
}
.nivo-caption h3{
text-align:center;
padding:5px;
display:inline-block;
border-radius:3px;
margin:0;
background:#444ff1;
font:400 25px Droid Arabic Kufi;
}
.nivo-caption .sliderdata{
margin:10px;
text-align:Center;
color:#fff;
}
.nivo-html-caption {
display:none;
}
/* Direction nav styles (e.g. Next & Prev) */
.nivo-directionNav a {
position: absolute;
top: 50%;
margin-top: -15px;
z-index: 9;
font-size: 0;
display: block;
width: 30px;
height: 30px;
border-radius: 5px;
line-height: 30px !important;
background-color: rgba(255,255,255,0.5);
cursor: pointer;
box-shadow: 1px 1px 1px rgba(0,0,0,0.4);
-moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.4);
-webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}
.nivo-prevNav {
left:10px;
}
.nivo-prevNav:before{
content:'\2190';
position:Absolute;
left:0;
top:0;
display:block;
z-index:100;
font:400 20px sans-serif;
color:#fff;
height:30px;
width:30px;
line-height:30px !important;
text-align:center;
}
.nivo-nextNav:before{
content:'\2192';
position:Absolute;
left:0;
top:0;
display:block;
z-index:100;
font:400 20px sans-serif;
color:#fff;
height:30px;
width:30px;
line-height:30px !important;
text-align:center;
}
.nivo-nextNav {
right:10px;
}
.nivo-controlNav {
    text-align: center;
    z-index: 99999;
    position: relative;
    bottom: 290px;
    font-size: 0;
}
.nivo-controlNav a {
cursor: pointer;
    display: block;
    width: 10px;
    height: 10px;
    background: #FFF;
    float: right;
    border-radius: 10px;
    margin-right: 5px;
}
.nivo-controlNav a.active {
background:#47cf73;
}
              
            
!

JS

              
                $(".recent-slider").each(function() {
            $(this).append('<div id="slider"></div>');
            var e = $(this).attr("data-label"),
                n = "https://io.mo3awin.com/feeds/posts/summary/-/" + e + "?max-results=" + 5 + "&alt=json-in-script",
                l = $(this);
            $.ajax({
                type: "GET",
                url: n,
                async:true,
                contentType: "application/json",
                dataType: "jsonp",
                success: function(s) {
                    for (var r = 0; r < s.feed.entry.length; r++) {
                        for (var n = s.feed.entry[r], i = 0; i < n.link.length; i++)
                            if ("alternate" == n.link[i].rel) {
                                var o = n.link[i].href;
                                break
                            }
                        try {
                            var c = n.media$thumbnail.url.replace("s72-c", "h300-w1200-no")
                        } catch (p) {
                            var c = "https://lh3.googleusercontent.com/24RAodFW8xxgzHpVBAthJHsf_szjRoa3-KzlAEdFgB6X6A5Gmlm-nCvt5nRkE95T52PmHSE4Mf5wvNGoRUgIXjjHi4PjiucY3RimpoVdiTPKQN5Jdj2n9-9bW0wUSzQcirYstqGO8Unv5v7RMU5JD_Q-lEuBgtUfXEmHxOs6ENvJBanzORTRCVXwSzYNRJxijualu8mHhR5S6DG8l4CIo6uADoudrzXGsz7oszRXccZK_FbasxG5xJ9O0mtPuIVavRO8Or89er61NiJIctiUWV0YqtMMOqK214VSjs8-lAx_7LmkneNOrkP7NdXvGTK0fxHgRBiHL7Tm2weLM33LjyMEzY4ygL68Hx81iJK4D-YRmUa8NJhpEKs8q93jgjwJ3ZrgDSzn2pKI-y3c5VWrYf-H38_lWOIMf7uuTOzKUOqoQYZLN8bhFYVyB4bLUwfX0gDtTT38QsV6MILDBQZl6gHQrHt1C8Lpp9EZ0x-1Vl2r2HeKlXS60iuRKZdfSWZNbibE2y9GCfdbBzRUGa-G3GRkQstDu2UBtNOo6WHZ4GI=w600-h250-no"
                        }
                        var d = n.title.$t,
                            u = n.summary.$t.substr(0, 180),
                            h = '<a href="' + o + '"><img src="' + c + '" title="<a href=\'' + o + "'><h3>" + d + "</h3></a><p>" + u + '</p>"/></a>';
                        l.find("#slider").append(h)
                    }
                    $("#slider").nivoSlider({
                        effect: "random",
                        pauseTime: 5e3
                    })
                }
            })
        })
              
            
!
999px

Console