diff --git a/ScrollTrigger.min.js b/ScrollTrigger.min.js new file mode 100644 index 0000000..643157d --- /dev/null +++ b/ScrollTrigger.min.js @@ -0,0 +1,26 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("ScrollTrigger",[],e):"object"==typeof exports?exports.ScrollTrigger=e():t.ScrollTrigger=e()}(window,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=2)}([function(t,e){ +/*! + * object-extend + * A well-tested function to deep extend (or merge) JavaScript objects without further dependencies. + * + * http://github.com/bernhardw + * + * Copyright 2013, Bernhard Wanger + * Released under the MIT license. + * + * Date: 2013-04-10 + */ +t.exports=function t(e,i){return null==e||null==i?e:(Object.keys(i).forEach((function(n){"[object Object]"==Object.prototype.toString.call(i[n])?"[object Object]"!=Object.prototype.toString.call(e[n])?e[n]=i[n]:e[n]=t(e[n],i[n]):e[n]=i[n]})),e)}},function(t,e){Array.prototype.each=function(t){for(var e=this.length,i=0;ie.w-n.x&&(s=!1),t.top-o.y<-(t.height-n.y)&&(s=!1),t.top+o.y>e.h-n.y&&(s=!1),s}},{key:"_toggleClass",value:function(){var t=this;if(this.visible)return Array.isArray(this.toggle.class.in)?this.toggle.class.in.each((function(e){t.element.classList.add(e)})):this.element.classList.add(this.toggle.class.in),void(Array.isArray(this.toggle.class.out)?this.toggle.class.out.each((function(e){t.element.classList.remove(e)})):this.element.classList.remove(this.toggle.class.out));Array.isArray(this.toggle.class.in)?this.toggle.class.in.each((function(e){t.element.classList.remove(e)})):this.element.classList.remove(this.toggle.class.in),Array.isArray(this.toggle.class.out)?this.toggle.class.out.each((function(e){t.element.classList.add(e)})):this.element.classList.add(this.toggle.class.out)}},{key:"_toggleCallback",value:function(){if(this.visible){if("function"==typeof this.toggle.callback.in)return this.toggle.callback.in.call(this.element,this)}else if("function"==typeof this.toggle.callback.out)return this.toggle.callback.out.call(this.element,this)}}])&&r(e.prototype,i),o&&r(e,o),t}();function u(t,e){for(var i=0;i-1}))}},{key:"search",value:function(t){var e=this.triggers.filter((function(e){if(t instanceof NodeList||Array.isArray(t)){var i=!1;return t.each((function(t){e.element==t&&(i=!0)})),i}return e.element==t}));return 0==e.length?null:e.length>1?e:e[0]}},{key:"call",value:function(t){this.triggers.each(t)}}])&&u(e.prototype,i),n&&u(e,n),t}();function f(t,e){for(var i=0;ithis.position.x?"right":"left":t.y!==this.position.y?t.y>this.position.y?"bottom":"top":"none")!==this.direction&&(this.direction=e,"function"==typeof this.directionChange&&this.directionChange(this.direction)),this.position=t,this.lastAction=this._getTimestamp()}else this.direction="none";this.running||this._startRun()}},{key:"_startRun",value:function(){this.running=!0,"function"==typeof this.startCallback&&this.startCallback(),this._loop()}},{key:"_stopRun",value:function(){this.running=!1,"function"==typeof this.stopCallback&&this.stopCallback()}},{key:"getPosition",value:function(){return{x:this.element.pageXOffset||this.element.scrollLeft||document.documentElement.scrollLeft||0,y:this.element.pageYOffset||this.element.scrollTop||document.documentElement.scrollTop||0}}},{key:"_getTimestamp",value:function(){return Number(Date.now())}},{key:"_tick",value:function(){this.callback(this.position,this.direction),this._getTimestamp()-this.lastAction>this.sustain&&this._stopRun(),this.running&&this._loop()}},{key:"_loop",value:function(){(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){setTimeout(t,1e3/60)})(this._tick.bind(this))}},{key:"kill",value:function(){this.running=!1,this.element.removeEventListener("scroll",this._boundListener)}}])&&f(e.prototype,i),o&&f(e,o),t}();function y(t,e){for(var i=0;i + * Released under the MIT license. + * + * Date: 2017-07-09 + */ +var p=a,v=h,d=g,m=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._parseOptions(e),this._initCollection(),this._initLoop()}var e,i,o;return e=t,(i=[{key:"_parseOptions",value:function(t){t=s()(new n,t),this.defaultTrigger=t.trigger,this.scrollOptions=t.scroll}},{key:"_initCollection",value:function(){var t=document.querySelectorAll("[data-scroll]"),e=[];t.length>0&&(e=this.createTriggers(t)),this.collection=new v(e)}},{key:"_initLoop",value:function(){var t=this;this.loop=new d({sustain:this.scrollOptions.sustain,element:this.scrollOptions.element,callback:function(e,i){t._scrollCallback(e,i)},start:function(){t._scrollStart()},stop:function(){t._scrollStop()},directionChange:function(e){t._scrollDirectionChange(e)}})}},{key:"_scrollCallback",value:function(t,e){var i=this;this.collection.call((function(t){t.checkVisibility(i.scrollOptions.element,e)})),this.scrollOptions.callback(t,e)}},{key:"_scrollStart",value:function(){this.scrollOptions.start()}},{key:"_scrollStop",value:function(){this.scrollOptions.stop()}},{key:"_scrollDirectionChange",value:function(t){this.scrollOptions.directionChange(t)}},{key:"createTrigger",value:function(t,e){return new p(t,s()(this.defaultTrigger,e))}},{key:"createTriggers",value:function(t,e){var i=this,n=[];return t.each((function(t){n.push(i.createTrigger(t,e))})),n}},{key:"add",value:function(t,e){return t instanceof HTMLElement?(this.collection.add(this.createTrigger(t,e)),this):t instanceof p?(this.collection.add(t),this):t instanceof NodeList?(this.collection.add(this.createTriggers(t,e)),this):Array.isArray(t)&&t.length&&t[0]instanceof p?(this.collection.add(t),this):Array.isArray(t)&&t.length&&t[0]instanceof HTMLElement?(this.collection.add(this.createTriggers(t,e)),this):(this.collection.add(this.createTriggers(document.querySelectorAll(t),e)),this)}},{key:"remove",value:function(t){return t instanceof p?(this.collection.remove(t),this):Array.isArray(t)&&t.length&&t[0]instanceof p?(this.collection.remove(t),this):t instanceof HTMLElement?(this.collection.remove(this.search(t)),this):Array.isArray(t)&&t.length&&t[0]instanceof HTMLElement?(this.collection.remove(this.search(t)),this):t instanceof NodeList?(this.collection.remove(this.search(t)),this):Array.isArray(t)&&t.length&&t[0]instanceof p?(this.collection.remove(t),this):(this.collection.remove(this.query(t.toString())),this)}},{key:"query",value:function(t){return this.collection.query(t)}},{key:"search",value:function(t){return this.collection.search(t)}},{key:"listen",value:function(){this.loop||this._initLoop()}},{key:"kill",value:function(){this.loop.kill(),this.loop=null}}])&&y(e.prototype,i),o&&y(e,o),t}()}])})); +//# sourceMappingURL=ScrollTrigger.min.js.map \ No newline at end of file diff --git a/main.css b/main.css index 7e2f623..9043e68 100644 --- a/main.css +++ b/main.css @@ -7,26 +7,94 @@ flex-direction: column; position: relative; font-family: "Sawarabi Mincho"; + background-color: #fffffc; } -button{ - width: auto; - padding: 0; - margin: 0; - background: none; - border: 0; - font-size: 0; - line-height: 0; - overflow: visible; - cursor: pointer; +h2,h3,p{ + color: #606060; } -.side{ +footer{ + width: 100%; + background-color: white; display: flex; - flex-flow: row nowrap; + flex-direction: row; } -.tour{ - flex: auto; - margin: 5vh; +.guide_p{ + color: #303030; + font-size: 1.2em; +} +.guide{ + background-image: url("back_image.PNG"); + background-size: cover; + background-color: #fdeff2; } .tour_video{ min-width: 300px; } +.tour_title{ + position: relative; + display: block; + padding: 30px; +} +.tour_title:before{ + content: ""; + margin-top: -10px; + display: block; + position: absolute; + width: 5%; + border-top: solid 2px #808080; + transition: 1s ease-in-out; + left: 0; +} +.tour_title:after{ + content: ""; + margin-top: 10px; + display: block; + position: absolute; + width: 5%; + border-top: solid 2px #808080; + transition: 1s ease-in-out; + right: 0; +} +.tour_title:hover:before{ + width: 70%; + left: 15% +} +.tour_title:hover:after{ + width: 70%; + right: 15%; +} + +@media screen and (orientation: landscape){ + .side{ + display: flex; + flex-flow: row nowrap; + } + .tour{ + flex: auto; + padding: 5vh; + } + .tour_title{ + margin: 10px; + padding: 10px; + position: relative; + display: block; + } + .tour_title:after{ + content: ""; + margin-top: 10px; + display: block; + position: absolute; + width: 5%; + border-top: solid 2px #808080; + transition: 1s ease-in-out; + right: 0; + } + .tour_title:hover:before{ + width: 90%; + left: 5% + } + .tour_title:hover:after{ + width: 90%; + right: 5%; + } +} diff --git a/shonai.html b/shonai.html index 1545eed..3147519 100644 --- a/shonai.html +++ b/shonai.html @@ -14,27 +14,33 @@
-

ここに色々案内の文を入れまーーーーーーーーーーーーーす。
+

どさいても、庄内

+

ここに色々案内の文を入れまーーーーーーーーーーーーーす。
コロナで観光がどーのこーの
オンラインで観光地に行こーーーーーーー

-

酒田なんちゃらツアー紹介

-

酒田のツアーについてーーーーーーーーーーーーーーーーー

- +
+

酒田のツアーについてーーーーーーーーーーーーーーーーー

+ +

鶴岡なんちゃらツアー紹介

-

鶴岡のツアーについてーーーーーーーーーーーーーーーーー

- +
+

鶴岡のツアーについてーーーーーーーーーーーーーーーーー

+ +
+

ご案内

+

あとがき的なーーーーーーーーーーー