{"id":2067,"date":"2017-01-16T21:21:52","date_gmt":"2017-01-17T03:21:52","guid":{"rendered":"http:\/\/cssnewbie.com\/?p=2067"},"modified":"2017-01-16T21:21:52","modified_gmt":"2017-01-17T03:21:52","slug":"css3s-tilted-text-effect","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/css3s-tilted-text-effect\/","title":{"rendered":"CSS3\u2019s Tilted Text Effect"},"content":{"rendered":"<p class=\"p1\"><span class=\"s1\">Here\u2019s a cool text effect that can be achieved easily using CSS3: tilted text. To create this effect, you\u2019ll need to create to divs \u2014 one for the text that is to be tilted to the left, and another for the text that is to be tilted to the right. Your HTML should look something like this:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">&lt;div id=\"container\"&gt;\n<\/span>&lt;div id=\"tilted-left\"&gt;TILTED&lt;\/div&gt;\n&lt;div id=\"tilted-right\"&gt;TEXT&lt;\/div&gt;\n&lt;\/div&gt;<\/pre>\n<p class=\"p1\"><span class=\"s1\">To style this properly, you\u2019ll have to use the transform property with rotate values (which you can customize depending on just how titled you want your text to be). You can also use the text-shadow property to give the text a slight 3D effect. Here\u2019s what your CSS needs to look like:<\/span><\/p>\n<pre class=\"p1\">#tilted-left {\n font-size: 100px;\n color: #fff;\n text-shadow:#fff 1px 1px 0,\n #f1f1f1 2px 2px 0,\n #f2f2f2 3px 3px 0,\n #f3f3f3 4px 4px 0,\n #f4f4f4 5px 5px 0,\n #f5f5f5 6px 6px 0;\n transform: rotate(-4deg) rotateX(10deg) skewX(2deg);\n float: left;\n}\n \n#tilted-right {\n font-size: 100px;\n color: #fff;\n text-shadow:#fff 1px 1px 0,\n #f1f1f1 2px 2px 0,\n #f2f2f2 3px 3px 0,\n #f3f3f3 4px 4px 0,\n #f4f4f4 5px 5px 0,\n #f5f5f5 6px 6px 0;\n transform: rotate(4deg) rotateX(-10deg) skewX(-2deg);\n float: right;\n}<\/pre>\n<p class=\"p1\"><span class=\"s1\">Play around with the text-shadows, colors, and degrees of rotations to customize this tilted text to your own liking.<\/span><\/p>\n<p class=\"p1\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-2068 aligncenter\" src=\"http:\/\/cssnewbie.com\/wp-content\/uploads\/2017\/01\/Screen-Shot-2017-01-11-at-1.33.14-PM-1024x202.png\" alt=\"Screen Shot 2017-01-11 at 1.33.14 PM\" width=\"664\" height=\"131\" \/><\/p>\n<div class=\"wp-socializer wpsr-share-icons \" data-lg-action=\"show\" data-sm-action=\"show\" data-sm-width=\"768\" ><h3>Share and Enjoy !<\/h3><div class=\"wpsr-si-inner\"><div class=\"wpsr-counter wpsrc-sz-32px\" style=\"color:#000\"><span class=\"scount\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook,twitter,linkedin,pinterest,print,pdf\">0<\/span><\/span><small class=\"stext\">Shares<\/small><\/div><div class=\"socializer sr-popup sr-32px sr-circle sr-opacity sr-pad sr-count-1 sr-count-1\"><span class=\"sr-facebook\"><a rel=\"nofollow\" href=\"https:\/\/www.facebook.com\/share.php?u=\" target=\"_blank\"  title=\"Share this on Facebook\"  style=\"color: #ffffff\" ><i class=\"fab fa-facebook-f\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-twitter\"><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/intent\/tweet?text=%20-%20%20\" target=\"_blank\"  title=\"Tweet this !\"  style=\"color: #ffffff\" ><i class=\"fab fa-twitter\"><\/i><\/a><\/span>\n<span class=\"sr-linkedin\"><a rel=\"nofollow\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=\" target=\"_blank\"  title=\"Add this to LinkedIn\"  style=\"color: #ffffff\" ><i class=\"fab fa-linkedin-in\"><\/i><\/a><\/span>\n<span class=\"sr-pinterest\"><a rel=\"nofollow\" href=\"https:\/\/www.pinterest.com\/pin\/create\/button\/?url=&amp;media=&amp;description=\" target=\"_blank\"  title=\"Submit this to Pinterest\"  style=\"color: #ffffff\" data-pin-custom=\"true\"><i class=\"fab fa-pinterest\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"pinterest\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-print\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Print this article \"  style=\"color: #ffffff\" ><i class=\"fa fa-print\"><\/i><\/a><\/span>\n<span class=\"sr-pdf\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Convert to PDF\"  style=\"color: #ffffff\" ><i class=\"fa fa-file-pdf\"><\/i><\/a><\/span><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p class=\"p1\">Here\u2019s a cool text effect that can be achieved easily using CSS3: tilted text. To create this effect, you\u2019ll need to create to divs \u2014 one for the text that is to be tilted to the left, and another [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/css3s-tilted-text-effect\/\" title=\"Click to read 'CSS3\u2019s Tilted Text Effect'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":2797,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[174],"tags":[],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2067"}],"collection":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/comments?post=2067"}],"version-history":[{"count":0,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2067\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media\/2797"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=2067"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=2067"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=2067"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}