• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

BG Animation with CSS

Scheduled Pinned Locked Moved Showcase
11 Posts 6 Posters 5.1k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    Piranha1605 @sdetweil
    last edited by Jul 2, 2020, 6:15 AM

    @sdetweil

    I just tested it in the living room. It runs smoothly if you set the time to 5s. The problem is now the discussion with my wife why I now work on the large TV in the living room every evening. :)

    Unbenannt.jpg

    You Tube Video
    TV
    Samsung GQ75Q60RGT

    C 1 Reply Last reply Jan 13, 2021, 2:13 AM Reply Quote 1
    • P Offline
      Piranha1605 @Piranha1605
      last edited by Jul 2, 2020, 7:48 PM

      @Piranha1605 said in BG Animation with CSS:

      Small work accident. The result is a BG animation with CSS only. :face_with_tears_of_joy: :face_with_tears_of_joy: :face_with_tears_of_joy: :face_with_tears_of_joy:

      Video on You Tube

      Unbenannt.jpg

      html {
      cursor : default;
      overflow : hidden;
      }
      body {
      margin : 10px;
      position : absolute;
      width : calc(100% - 20px);
      height : calc(100% - 20px);
      margin-bottom : -10px;
      font-size : 20px;
      font-weight : 500;
      line-height : 1.5;
      color : #FFF;
      background : url("bg/bg11.jpg");
      width : 100%;
      height : 100vh;
      background-size : cover;
      background-blend-mode : hard-light;
      animation : hue-rotate 10s linear infinite;
      }
      header {
      text-align : center;
      font-size : 20px;
      padding : 8px;
      border-radius : 5px;
      outline : none;
      border : none;
      color : #FFF;
      text-transform : uppercase;
      text-shadow : 0 1px 5px #000;
      border : #000 solid 1px;
      opacity : 0.7;
      box-shadow : 0 8px 6px -6px rgb(0, 0, 0, 0.7);
      border-top : 1px solid rgb(255, 255, 255, 0.8) !important ;
      }
      .dimmed {
      color : #FFF;
      }
      .normal {
      color : #FFF;
      }
      .bright {
      color : #FFF;
      }
      .module {
      font-size : 20px;
      padding : 8px;
      font-weight : 400;
      border-radius : 5px;
      box-shadow : 4px 6px 10px -4px rgb(0, 0, 0, 0.3) inset, 0 1px 1px -1px rgb(255, 255, 255, 0.3);
      background : rgb(0, 0, 0, 0.2);
      outline : none;
      border : none;
      border : black solid 1px;
      color : #6E6E6E;
      text-shadow : 0 1px 5px #000;
      }
      @keyframes hue-rotate {
      from {
      filter : hue-rotate(0);
      }
      to {
      filter : hue-rotate(360deg);
      }
      } 
      
      1 Reply Last reply Reply Quote 0
      • D Offline
        datamunk
        last edited by datamunk Oct 12, 2020, 8:25 PM Oct 12, 2020, 8:23 PM

        Unrelated to the animation, but how do you do those borders around your modules? In your post, is it the .module settings ?

        UPDATE: I added to my css and it worked, cool! Been trying to find this for a while. Thanks for helping!

        .module {
        font-size: 20px;
        padding:8px;
        font-weight: 400;
        border-radius: 5px;
        box-shadow: inset 4px 6px 10px -4px rgba(0, 0, 0, 0.3), 0 1px 1px -1px rgba(255, 255, 255, 0.3);
        background: rgba(0, 0, 0, 0.2);
        outline: none;
        border: none;
        border: 1px solid black;
        color: #6E6E6E;
        text-shadow: #000 0px 1px 5px;

        }

        1 Reply Last reply Reply Quote 0
        • C Offline
          cowboysdude Module Developer @Piranha1605
          last edited by Jan 13, 2021, 2:13 AM

          @Piranha1605 Late to this party but MAN your background looks really awesome!

          1 Reply Last reply Reply Quote 0
          • C Offline
            ClassicRed
            last edited by Aug 7, 2021, 12:54 AM

            Hello

            I applied the css, great

            Except that my screen is small, I have to put it in portrait mode when I do this:

            https://forum.magicmirror.builders/topic/9707/save-performance-when-rotating-screen-e-g-on-raspberry-pi/12?page=2

            the whole image goes into a spin

            thanks for the help


            Bonjour

            J’ai appliqué le css , génial

            Sauf que mon ecran et petit , je dois le mettre en mode portrait quans je fais ceci :
            https://forum.magicmirror.builders/topic/9707/save-performance-when-rotating-screen-e-g-on-raspberry-pi/12?page=2

            toute l’image part en vrille

            Merci pour l’aide

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 2
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy