Some grammarians do claim it to be a vowel. It's been a subject of discord amongst them for centuries.
The best answer is that it's both, as described here
'vowels' and 'consonants' really describe sounds, not letters. The letter Y can perform both of these functions - vowel sound (ie no obstruction to the flow of breath) in the words clown tickle mentions; but a consonant sound in yes, year and so on. W can be a vowel in Welsh.