<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nik Moraitis</title>
    <description>The latest articles on DEV Community by Nik Moraitis (@nikmors).</description>
    <link>https://dev.to/nikmors</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F431615%2Fd193da99-4958-4955-90d8-5241ac61f616.jpg</url>
      <title>DEV Community: Nik Moraitis</title>
      <link>https://dev.to/nikmors</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nikmors"/>
    <language>en</language>
    <item>
      <title>The Video Background Stimulate</title>
      <dc:creator>Nik Moraitis</dc:creator>
      <pubDate>Thu, 29 Oct 2020 10:31:01 +0000</pubDate>
      <link>https://dev.to/nikmors/the-video-background-stimulate-1nn1</link>
      <guid>https://dev.to/nikmors/the-video-background-stimulate-1nn1</guid>
      <description>&lt;p&gt;In more than a few years, the video background has become the trend in Web design and for what I have seen so far, it tends to stay for more than a while around us.&lt;/p&gt;

&lt;p&gt;Personally, I like to see a short movie play on the background when I first visit a homepage of a brand that tells the story within a short clip. Accompanied by a title and a short text that hits the nail right on the head. &lt;/p&gt;



&lt;h2&gt;How to present a Video Background?&lt;/h2&gt;

&lt;p&gt;Well, to present your content right it has to be as clear and visible as possible. For example, having a background video overlay with bright colours, with a similar contrast texts don’t make any favours to your design and to your website as a whole. &lt;/p&gt;

&lt;p&gt;A trick you need to apply on your design, is to have a layer in between your video and your text. That &lt;em&gt;curtain&lt;/em&gt; could possibly be a background colour that gives the desired contrast for the text to stick out from the background. To give an example here, a black coloured background with an opacity less than 50% in between your video and your writing content, could be creating a great contrast for your design. And that can be our filter to apply better contrast between our elements. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://nikmoraitis.inko.site/for-her-fashion-video-overlay/"&gt;In my case,&lt;/a&gt; I had to create a video background overlay for a fashion company. The video was advertising a woman’s fashion and it is telling its short story as it should. &lt;/p&gt;

&lt;p&gt;Now, the original video was too bright for my wanted design. If I had to use the original video as my background with my Call of Action elements (texts and button), it wouldn’t do any favours to me or to my design. Having a high brightness on my video was distracting the user’s attention, and as a result the user could not focus on the Call of Action area where I want them to focus on (as the texts were lacking of contrast and they were making it invisible for the viewers). &lt;/p&gt;

&lt;p&gt;&lt;u&gt;Solution:&lt;/u&gt; What I did in &lt;a href="https://github.com/nikmors/VideoOverlay"&gt;this example&lt;/a&gt; was to pin down my video by adding a black colour filter in front of it. Make sure that the opacity of the filter stays low (=&amp;lt;50% opacity).  In this way, the Call of Action section, including titles, texts and buttons, is given a nice contrast to set the needed focus for the viewer. &lt;/p&gt;

&lt;p&gt;So, &lt;b&gt;Contrast is essential&lt;/b&gt; to succeed with your Call of Action campaign!&lt;/p&gt;

&lt;p&gt;In the end, that’s what you want to achieve with your design. Less distractions and a main focus on your Call of Action campaign, even though you do want to tell your story with a short video on the background. &lt;/p&gt;



&lt;h2&gt;How big should a video be? &lt;/h2&gt;

&lt;p&gt;Your video background should be as short as it can be. Long videos produce long buffering. And a long load screens affect your traffic that eventually would put your visitors off your website. &lt;/p&gt;

&lt;p&gt;You should be advised to limit the length of your video to 30-40 seconds long, or in the best-case scenario, you should find a short video (approx. 30 secs) that loops seamlessly. So that you give the impression that your video seems endless. Try to find or make a video that can be less than 1MB or 2MB in size. &lt;/p&gt;

&lt;p&gt;However, if you are a business make sure you show your story within that time gap. You don’t want to tell them everything, showing every corner, every person, every aspect of your business.&lt;br&gt;
You just want to stimulate their interest to buy upon your campaign or converting them from visitors to customers, to followers. &lt;/p&gt;



&lt;h2&gt;Benefits of a Video Background Stimulate&lt;/h2&gt;

&lt;p&gt;Today more and more companies use the Video Background Stimulate, some of them are &lt;a href="https://www.nike.com/jordan"&gt;Nike Air Jordan &lt;/a&gt; and &lt;a href="https://waynemcgregor.com/"&gt;Wayne McGregor dance studio &lt;/a&gt;. The videos are looking mesmerizing that complement every content of the website and adding a WOW factor on the eyes of the viewer. &lt;/p&gt;

&lt;h6&gt;
  
  
  &lt;em&gt;notice: the homepages mentioned here may vary in time and they may change in the future, so don’t be disheartened if you can’t find the examples I am giving you here.&lt;/em&gt;
&lt;/h6&gt;

&lt;p&gt;Speaking about mesmerising visuals, in a related article of Inc. provides with evidence that: &lt;br&gt;
• Unbounce reports that including video on a landing page can increase conversion by 80%.&lt;br&gt;
• YouTube reports mobile video consumption rises 100% every year.&lt;br&gt;
• 90% of user say that seeing a video about a product is helpful in the decision process.&lt;br&gt;
• And, 50% of executives look for more information after seeing a product/service in a video, according to Forbes.&lt;/p&gt;

&lt;p&gt;It’s some of their reviews. For more information read the paper &lt;a href="https://www.inc.com/gordon-tredgold/20-reasons-why-you-should-boost-your-video-marketing-budget-in-2017.html"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You may say: &lt;em&gt;“Video backgrounds can make pages load slower and distract visitors from your Call to Action..”&lt;/em&gt; but that is not entirely true. If you follow the above approach you can bring more focus on your Call to Action campaign, by pinning down your video background with a filter of your choice.&lt;/p&gt;

&lt;p&gt;I believe that your video background case can make visitors stay longer on your page, just enough to watch what opens in front of their eyes. &lt;strong&gt;Curiosity is the main stimulate.&lt;/strong&gt; You can also intrigue your visitors to talk over the social media about your page, which is quite beneficial for your website traffic.&lt;/p&gt;



&lt;h2&gt;Resources of Video Background Stimulates&lt;/h2&gt;

&lt;p&gt;There is a number of free and paid online services that provide with videos for your coming projects. The best way, if you are a company of your own, is to have your own video. Promoting your company, your visions, your ethos, your products, your team, your services is something that has your own brand signature and appears unique. &lt;/p&gt;

&lt;p&gt;In case you don’t have that luxury of composing your own -short story- video. You can have a look around and see what suits you better for your own campaign or your own promotional landing page. However, beware of what you are choosing. Have a look around and see what your competitors are using and avoid displaying the same media. After all, you still want to keep your uniqueness and make that video look as your own. &lt;/p&gt;

&lt;p&gt;Below I give you some of the resources I choose for my own projects too:&lt;br&gt;
• &lt;a href="https://www.pexels.com/videos/"&gt;Pexels&lt;/a&gt;&lt;br&gt;
• &lt;a href="https://videohive.net/?ref=ctt1024"&gt;Enveto Market&lt;/a&gt;&lt;br&gt;
• &lt;a href="https://stock.adobe.com/uk/video?gclid=Cj0KCQjwit_8BRCoARIsAIx3Rj4jfxq-4Gsdnf94fYttY1dfGEbSsj9u383Ebc4K3ZUyjoblmWMJLV0aAvJ0EALw_wcB&amp;amp;mv=search&amp;amp;as_channel=sem&amp;amp;as_campclass=nonbrand&amp;amp;as_campaign=UK%7CCPRO%7CStock%7CAWAR%7CVideo_BMM%7CGG%7C%7C&amp;amp;as_source=google&amp;amp;as_camptype=acquisition&amp;amp;sdid=CZY722XN&amp;amp;ef_id=Cj0KCQjwit_8BRCoARIsAIx3Rj4jfxq-4Gsdnf94fYttY1dfGEbSsj9u383Ebc4K3ZUyjoblmWMJLV0aAvJ0EALw_wcB:G:s&amp;amp;s_kwcid=AL!3085!3!454470054922!b!!g!!%2Bbackgrounds%20%2Bvideo!314293755!108574828680"&gt;Adobe Stock&lt;/a&gt;&lt;br&gt;
• &lt;a href="https://www.videezy.com/free-video/background"&gt;Videezy&lt;/a&gt;&lt;br&gt;
• &lt;a href="https://pixabay.com/videos/search/motion%20backgrounds/"&gt;Pixabay&lt;/a&gt;&lt;br&gt;
• and, &lt;a href="https://lifeofvids.com/"&gt;Life of Vids&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>videobackground</category>
      <category>videooverlay</category>
      <category>callofaction</category>
      <category>homepage</category>
    </item>
    <item>
      <title>Hamburger Menu Creation</title>
      <dc:creator>Nik Moraitis</dc:creator>
      <pubDate>Tue, 14 Jul 2020 15:07:55 +0000</pubDate>
      <link>https://dev.to/nikmors/hamburger-menu-creation-n9b</link>
      <guid>https://dev.to/nikmors/hamburger-menu-creation-n9b</guid>
      <description>&lt;p&gt;Hamburger menu has become one of the most recognizable icon in mobile design, and not only. &lt;/p&gt;

&lt;p&gt;There are many names to call it. Hotdog menu, three-line menu, or menu button, to name a few. However, as &lt;a href="https://en.wikipedia.org/wiki/Norm_Cox_(designer)"&gt;Norm Cox&lt;/a&gt; said himself: “Its graphic design was meant to be very “road sign” simple, functionally memorable, and mimic the look of the resulting displayed menu list. With so few pixels to work with, it had to be very distinct, yet simple.”&lt;/p&gt;

&lt;p&gt;And this is what it does and what it represents. &lt;br&gt;
When we design in User Experience tools or we develop a website, it has become a must icon to choose. And probably the first option we think when it comes to mobile design.&lt;/p&gt;

&lt;p&gt;From my experience, it might seem to be a smart way to display a menu shouts: &lt;em&gt;“Hey, tap me- I am a menu, I can unfold”&lt;/em&gt; but don’t expect everyone to hear it. It is a very clever way to wrap a list of text menu within that icon. However, when it comes to work with the older age group, that menu appears to be your worst option you have on the table. So, don’t be discouraged to consider other approaches to design your menus for smaller devices. Specially, when applies to an old age group, as most of them are not quite familiar with new trends and designs. &lt;/p&gt;

&lt;p&gt;There are four ways following with examples of how to build a hamburger menu. All of them appear to be easy enough to understand how they work. Practices that I have been following even now myself as a web developer. &lt;/p&gt;

&lt;p&gt;So, let’s see them:&lt;/p&gt;

&lt;h2&gt;
  
  
  1.   Bootstrap Hamburger Menu
&lt;/h2&gt;

&lt;p&gt;The first option, is probably the quickest way to build a hamburger menu.&lt;/p&gt;

&lt;p&gt;This is a ready build icon from the infamous CSS Framework. All you need to do is to import a link in your HTML file. And voila! You have it.&lt;/p&gt;

&lt;p&gt;To resize your menu here, size values like &lt;code&gt;width&lt;/code&gt; &amp;amp; &lt;code&gt;height&lt;/code&gt; won’t do any work for you. Instead, you can control the size of your hamburger menu with the CSS property &lt;code&gt;font-size&lt;/code&gt;. &lt;br&gt;
Yep… you read well.&lt;/p&gt;

&lt;p&gt;Bootstrap 4 is handling the icon as a text, after all the class &lt;em&gt;fa fa-bars&lt;/em&gt; is within the Italic &lt;em&gt;&lt;i&gt;&lt;/i&gt;&lt;/em&gt; tag. The good thing is you can still play around with its properties and treat it as a text.&lt;/p&gt;

&lt;p&gt;HTML:&lt;br&gt;
&lt;code&gt;&amp;lt;head&amp;gt;&lt;br&gt;
        &amp;lt;link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"&amp;gt;&lt;br&gt;
    &amp;lt;/head&amp;gt;&lt;br&gt;
    &amp;lt;body&amp;gt;&lt;br&gt;
    &amp;lt;div class="navbar" title="menu"&amp;gt;&lt;br&gt;
        &amp;lt;i class="fa fa-bars"&amp;gt;&amp;lt;/i&amp;gt;&lt;br&gt;
    &amp;lt;/div&amp;gt;&lt;br&gt;
    &amp;lt;/body&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;CSS:&lt;br&gt;
&lt;code&gt;.navbar{&lt;br&gt;
    color: black;&lt;br&gt;
    font-size: 35px;&lt;br&gt;
    margin: 25px;&lt;br&gt;
}&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2.   Unicode Character
&lt;/h2&gt;

&lt;p&gt;The second option is to use a character from the Unicode IT standard. The character &lt;code&gt;&amp;amp;#9776;&lt;/code&gt; is nothing but a Chinese glyph, meaning the &lt;em&gt;trigram for heaven.&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;In this case, you have even less lines of code to work on. In this example, the character is treated as a font by the CSS to give size and a color. &lt;/p&gt;

&lt;p&gt;Also, I noticed when you display the glyph, there is an underline to it. To remove the underline completely, just set the &lt;em&gt;text-decoration&lt;/em&gt; to &lt;em&gt;none.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;HTML:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;a id="nav_toggle" href="#"&amp;gt; &amp;amp;#9776;&amp;lt;/a&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;CSS:&lt;br&gt;
&lt;code&gt;#nav_toggle{&lt;br&gt;
    font-size: 50px;&lt;br&gt;
    color: black;&lt;br&gt;
    text-decoration: none;&lt;br&gt;
  }&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3.   The Triad of Div
&lt;/h2&gt;

&lt;p&gt;The third option is the one I prefer myself mostly. &lt;br&gt;
The hamburger menu is assembled by 3 divs. &lt;/p&gt;

&lt;p&gt;The true benefit is that later on, injecting some CSS you can adjust it to your personal liking, whether it has to do with positioning, colour, size etc. You have a complete control of your menu. &lt;/p&gt;

&lt;p&gt;HTML:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;nav&amp;gt;&lt;br&gt;
      &amp;lt;div class="hamburger-menu"&amp;gt;&lt;br&gt;
           &amp;lt;div class="line"&amp;gt;&amp;lt;/div&amp;gt;&lt;br&gt;
           &amp;lt;div class="line"&amp;gt;&amp;lt;/div&amp;gt;&lt;br&gt;
           &amp;lt;div class="line"&amp;gt;&amp;lt;/div&amp;gt;&lt;br&gt;
       &amp;lt;/div&amp;gt;&lt;br&gt;
  &amp;lt;/nav&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;CSS:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;nav{&lt;br&gt;
    position: relative;&lt;br&gt;
    height: 10vh;&lt;br&gt;
    }&lt;br&gt;
.hamburger-menu{&lt;br&gt;
     position: absolute;&lt;br&gt;
     left: 5%;&lt;br&gt;
     top: 50%;&lt;br&gt;
     transform: translate(-5%, -50%);&lt;br&gt;
     cursor: pointer;&lt;br&gt;
      }&lt;br&gt;
.line{&lt;br&gt;
     width: 30px;&lt;br&gt;
     height: 3px;&lt;br&gt;
     background: black;&lt;br&gt;
     margin: 5px;&lt;br&gt;
      }&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4.   Pseudo-elements ( :before , :after )
&lt;/h2&gt;

&lt;p&gt;The last creation of a hamburger menu is also an option I recommend too. Injecting your class with the pseudo-elements &lt;code&gt;:before&lt;/code&gt; and &lt;code&gt;:after&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;HTML:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;nav&amp;gt;&lt;br&gt;
    &amp;lt;div class="hamburger"&amp;gt;&amp;lt;/div&amp;gt;&lt;br&gt;
 &amp;lt;/nav&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;CSS:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;nav{&lt;br&gt;
     position: absolute;&lt;br&gt;
     top: 50%;&lt;br&gt;
     left: 50%;&lt;br&gt;
     transform: translate(-50%, -50%);&lt;br&gt;
     width: 80px;&lt;br&gt;
     height: 80px;&lt;br&gt;
     cursor: pointer;&lt;br&gt;
}&lt;br&gt;
.hamburger{&lt;br&gt;
     width: 50px;&lt;br&gt;
     height: 6px;&lt;br&gt;
     background: black;&lt;br&gt;
     position: absolute;&lt;br&gt;
     top: 50%;&lt;br&gt;
     left: 50%;&lt;br&gt;
     transform: translate(-50%, -50%);&lt;br&gt;
}&lt;br&gt;
.hamburger:before, &lt;br&gt;
.hamburger:after{&lt;br&gt;
     content: '';&lt;br&gt;
     width: 50px;&lt;br&gt;
     height: 6px;&lt;br&gt;
     background: black;&lt;br&gt;
     position: absolute;&lt;br&gt;
}&lt;br&gt;
.hamburger:before{&lt;br&gt;
     top: -16px;&lt;br&gt;
}&lt;br&gt;
.hamburger:after{&lt;br&gt;
     top: 16px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What’s the best approach?
&lt;/h2&gt;

&lt;p&gt;I’d say your approach is dependent on what you’re working on.&lt;/p&gt;

&lt;p&gt;Always check the compatibility with each browser, specially with the Unicode character. &lt;/p&gt;

&lt;p&gt;Like I said, it depends the type of group that your target audience is and how that menu is recognizable by that particular group. &lt;/p&gt;

&lt;p&gt;Still you have to touch the CSS properties to give your menu the style you want. &lt;/p&gt;

&lt;p&gt;Considering how big your project is, I’d choose something with the least code lines. And off course, I am totally hands up with having the freedom to control the design of my menu. &lt;/p&gt;

</description>
      <category>hamburgermenu</category>
      <category>css</category>
      <category>html</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
