Current status of the Ning Platform is always available on the Ning Status Blog.

NC for Hire

So you want a simple full screen (perhaps even as a background) responsive slideshow.  But you hate javascript.  This is a tip for you.

What we are making is something like this live demo:

Add this to an HTML module in sites and pages:

<div class="pic-wrapper">
<figure class="pic-1"></figure>
<figure class="pic-2"></figure>
<figure class="pic-3"></figure>
<figure class="pic-4"></figure>
</div>

Add this to Design Studio and substitute my photos in RED with your own:

* {
margin: 0;
padding: 0;
}

.pic-wrapper {
position: absolute;
width: 100%;
height: 100%;
overflow:hidden;
}

figure {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity:0;
/*animation*/

animation: slideShow 24s linear infinite 0s;
-o-animation: slideShow 24s linear infinite 0s;
-moz-animation: slideShow 24s linear infinite 0s;
-webkit-animation: slideShow 24s linear infinite 0s;
}

.pic-1 {
opacity: 1;
background: url(https://storage.ning.com/topology/rest/1.0/file/get/558412?profile=original) no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

.pic-2 {
animation-delay: 6s;
-o-animation-delay: 6s;
-moz--animation-delay: 6s;
-webkit-animation-delay: 6s;
background: url(https://api.ning.com/files/0gGC4ZQuxjP5x5SjFdkC3hRolHrtFW8ca1JPd6W5PQN8MuTMinV0RlXOUH8fss0*xpKRYjdbH-J6jfF3liUEu*aOEEcD-DjJ/287558876_8858230ce0_o.jpg) no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

.pic-3 {
animation-delay: 12s;
-o-animation-delay: 12s;
-moz--animation-delay: 12s;
-webkit-animation-delay: 12s;
background: url(https://api.ning.com/files/0gGC4ZQuxjPNCyNfJkoM40OFMvObnYS46NlTDpXd*6vCwrKOLGjsNzFpiR4CKSSS-5NO7dji4qZLkjIpYhGJ272FgkzMk*3J/213517942_ab19f3d074_o.jpg) no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

.pic-4 {
animation-delay: 18s;
-o-animation-delay: 18s;
-moz--animation-delay: 18s;
-webkit-animation-delay: 18s;
background: url(https://api.ning.com/files/0gGC4ZQuxjMQdb1437wd44kJna7VPuRuIwtx1JNMnxuMF42MsqLFmFP*VM3FabhexTpnC6lJIOQ*yecEZM2yQbuDq*niqOig/2929804557_4b59051e82_o.jpg) no-repeat center center;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
/* keyframes*/

@keyframes slideShow {
0% {
opacity: 0;
transform:scale(1);
-ms-transform:scale(1);
}
5% {
opacity: 1
}
25% {
opacity: 1;
}
30% {
opacity: 0;
transform:scale(1.1);
-ms-transform:scale(1.1);
}
100% {
opacity: 0;
transform:scale(1);
-ms-transform:scale(1);
}
}

@-o-keyframes slideShow {
0% {
opacity: 0;
-o-transform:scale(1);
}
5% {
opacity: 1
}
25% {
opacity: 1;
}
30% {
opacity: 0;
-o-transform:scale(1.1);
}
100% {
opacity: 0;
-o-transform:scale(1);
}
}

@-moz-keyframes slideShow {
0% {
opacity: 0;
-moz-transform:scale(1);
}
5% {
opacity: 1
}
25% {
opacity: 1;
}
30% {
opacity: 0;
-moz-transform:scale(1.1);
}
100% {
opacity: 0;
-moz-transform:scale(1);
}
}

@-webkit-keyframes slideShow {
0% {
opacity: 0;
-webkit-transform:scale(1);
}
5% {
opacity: 1
}
25% {
opacity: 1;
}
30% {
opacity: 0;
-webkit-transform:scale(1.1);
}
100% {
opacity: 0;
-webkit-transform:scale(1);
}
}

And that's all folks!  No Javascript to weigh down your weekend.  Contact me if you need help with your Ning adventures.

You need to be a member of Ning Creators Social Network to add comments!

Join Ning Creators Social Network

Votes: 0
Email me when people reply –

Replies

  • Sweet codes, I've always loved CSS animation. Thank you for sharing JF

    • NC for Hire
      My P G
      • I did some playing around with this and made three different versions.

        One for modules,
        another one for fixed backgrounds and
        one for the HTML boxes above and below the header and above the footer.

        They can all be ran on the same page with different images.

        3238487?profile=RESIZE_480x480

        ~~~~~~~~~~~~~~~

        JF There are a few errors in the CSS in this discussion.  There are four lines of code with the word transformm it should be  transform,  you have one too many    m 's ...   I'm sure it was a copy and paste error, I've done it myself. lol  :)

        • NC for Hire

          thanks for that heads up George.. yeah i think i have pretty much decided that from now on ill share these codes as attached notepad files so this doesn't occur..  Good eye G!  Time to transformmmm

        • Nice. I would prefer it in a module. Any chance for the code? Thanks :)

  • No Javascript to weigh down your weekend

    Yay!  Thank you for sharing this

  • This reply was deleted.
  • Nice and clean.  Will def use this one somewhere. thanks for sharing brother ;)

This reply was deleted.
 

Some interesting articles related to community management, digital marketing etc. could be found in our digest. Don't hesitate to leave a feedback so we would know that we should continue :-)

Latest Activity

Eva liked ⚡JFarrow⌁'s discussion What is going on with Ning? What Do We have to Look Forward To?
yesterday
Eva liked Suave's discussion I AM LOOKING FOR DEVELOPER ASSISTANCE WITH ADDING AUTOMATIC MUSIC TO MY HOME PAGE
yesterday
Alex - Rosas † Negras posted a discussion
Sunday
Alex - Rosas † Negras posted a discussion
May 28
Alex - Rosas † Negras replied to Suave's discussion
I AM LOOKING FOR DEVELOPER ASSISTANCE WITH ADDING AUTOMATIC MUSIC TO MY HOME PAGE
"if you need I'm here, if you look in my discussions you will also find the playstil"
May 23
Alex - Rosas † Negras replied to ⚡JFarrow⌁'s discussion
What is going on with Ning? What Do We have to Look Forward To?
"Bizz ⚡JFarrow⌁ 
I'm sorry that many like us have worked so hard and given up, but at least I'm…"
May 23
⚡JFarrow⌁ posted a discussion
Back in the day, this community was jumping with activity.   But since the Ukraine war broke out we…
May 22
⚡JFarrow⌁ and Truebook are now friends
May 22
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
I want to thank JOHN BIZLEY ( BIZZ) for his invaluable help, active icons on the Ning bar,CODES ADDED
"A thousand thanks"
May 20
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
"Pam Givens this is an example i created of an old 3.0 site"
May 20
Alex - Rosas † Negras replied to Pam Givens's discussion
Landing Page
""
May 20
Alex - Rosas † Negras replied to Alex - Rosas † Negras's discussion
Sorry for my absence
"Pam Givens hi my friend, yes everything is ok a big hug"
May 19
More…

Meanwhile, you can check our social media channels