Results 1 to 6 of 6

Thread: blinking image not blinking

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default blinking image not blinking

    I have added this to the basic.css file

    @-moz-keyframes blink {0%{opacity:1;} 50%{opacity:0;} 100%{opacity:1;}} /* Firefox */
    @-webkit-keyframes blink {0%{opacity:1;} 50%{opacity:0;} 100%{opacity:1;}} /* Webkit */
    @-ms-keyframes blink {0%{opacity:1;} 50%{opacity:0;} 100%{opacity:1;}} /* IE */
    @keyframes blink {0%{opacity:1;} 50%{opacity:0;} 100%{opacity:1;}} /* Opera and prob css3 final iteration */

    .blinking {
    border:1px solid #000;
    -moz-transition:all 1s ease-in-out;
    -webkit-transition:all 1s ease-in-out;
    -o-transition:all 1s ease-in-out;
    -ms-transition:all 1s ease-in-out;
    transition:all 1s ease-in-out;
    /* order: name, direction, duration, iteration-count, timing-function */
    -moz-animation:blink normal 2s infinite ease-in-out; /* Firefox */
    -webkit-animation:blink normal 2s infinite ease-in-out; /* Webkit */
    -ms-animation:blink normal 2s infinite ease-in-out; /* IE */
    animation:blink normal 2s infinite ease-in-out; /* Opera and prob css3 final iteration */
    }​

    Added class="blinking" to the image in question but image will not blink.

    http://www.theremotedoctor.co.uk/kar...llto=selection

    <h1><img src="m-images/advert-honda.jpg" alt="the remote doctor honda advert" id="mainImage" class="blinking" /></h1>
    Last edited by theremotedr; 05-17-2015 at 12:27 PM.

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,

    there is something in the "basic.css" file that is preventing it from working.

    Moving the it from the bottom to the top of the "basic.css" file corrects it.

    coothead
    ~ the original bald headed old fart ~

  3. The Following User Says Thank You to coothead For This Useful Post:

    theremotedr (05-17-2015)

  4. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Many thanks for finding the issue.
    I have now put the code into another css file and all is working.

    I dont suppose which css file it goes in matters does it ?

    Taken from basic and put into normalize

  5. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,

    you may place it anywhere that seems appropriate, as long as it works of course.

    Also note that I did not investigate the actual cause of the problem with your "basic.css" file.

    coothead
    ~ the original bald headed old fart ~

  6. The Following User Says Thank You to coothead For This Useful Post:

    theremotedr (05-17-2015)

  7. #5
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    No problem.
    Moving it got me sorted.

    Thanks.

  8. #6
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default


    You're welcome.

    coothead
    ~ the original bald headed old fart ~

  9. The Following User Says Thank You to coothead For This Useful Post:

    theremotedr (05-17-2015)

Similar Threads

  1. Ultimate Fade-in Slideshow (2.6) Image "Blinking"
    By jefreygunion in forum JavaScript
    Replies: 3
    Last Post: 04-07-2015, 06:50 PM
  2. Image not blinking
    By theremotedr in forum CSS
    Replies: 4
    Last Post: 01-09-2015, 03:25 PM
  3. Cursor blinking behind dhtmlmodal
    By lostinpok in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 05-26-2011, 02:39 PM
  4. Blinking Cursor In HTML
    By soopaflyguy in forum Looking for such a script or service
    Replies: 1
    Last Post: 12-27-2009, 12:23 PM
  5. Blinking cursor in searchbox
    By burginsteve in forum JavaScript
    Replies: 5
    Last Post: 08-13-2008, 03:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •